breakout-custom/app/controllers/HomeController.scala
François Pelletier 0789487841 Ajout CORS
2024-08-31 23:27:03 -04:00

17 lines
341 B
Scala

package controllers
import play.api.mvc._
import actions.CORSAction
import javax.inject._
@Singleton
class HomeController @Inject()(
val controllerComponents: ControllerComponents,
corsAction: CORSAction
) extends BaseController {
def index(): Action[AnyContent] = corsAction { implicit request =>
Ok(views.html.index())
}
}