aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/HomeController.scala
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/HomeController.scala')
-rw-r--r--app/controllers/HomeController.scala24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/controllers/HomeController.scala b/app/controllers/HomeController.scala
new file mode 100644
index 0000000..2032080
--- /dev/null
+++ b/app/controllers/HomeController.scala
@@ -0,0 +1,24 @@
+package controllers
+
+import javax.inject._
+import play.api._
+import play.api.mvc._
+
+/**
+ * This controller creates an `Action` to handle HTTP requests to the
+ * application's home page.
+ */
+@Singleton
+class HomeController @Inject() extends Controller {
+
+ /**
+ * Create an Action to render an HTML page.
+ *
+ * The configuration in the `routes` file means that this method
+ * will be called when the application receives a `GET` request with
+ * a path of `/`.
+ */
+ def index = Action { implicit request =>
+ Ok(views.html.index())
+ }
+}