asteroid-cookies/app/controllers/HomeController.scala
François Pelletier d896049932 ajout CORS
2024-09-08 21:03:41 -04:00

17 lines
431 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())
}
}