ViewController.scala 485 B

123456789101112131415161718192021
  1. package com.weEat.controllers
  2. import javax.inject._
  3. import play.api._
  4. import play.api.mvc._
  5. /**
  6. * This controller creates an `Action` to handle HTTP requests to the
  7. * application's home page.
  8. */
  9. @Singleton
  10. class ViewController @Inject()(
  11. val controllerComponents: ControllerComponents
  12. ) (implicit
  13. val webJarsUtil: org.webjars.play.WebJarsUtil
  14. ) extends BaseController {
  15. def loader() = Action { implicit request: Request[AnyContent] =>
  16. Ok(views.html.viewLoader())
  17. }
  18. }