asteroid-cookies/app/controllers/HomeController.scala

18 lines
431 B
Scala
Raw Normal View History

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