From c3b7b013af860e49dda45b5a0795fa98de99a9e8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 9 Apr 2019 19:03:42 +0200 Subject: Added index template --- src/main/kotlin/App.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/kotlin/App.kt') diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt index e856ade..c8d2bf8 100644 --- a/src/main/kotlin/App.kt +++ b/src/main/kotlin/App.kt @@ -35,6 +35,12 @@ fun main() { databaseController.createUser("melvin", "supersecure", "ADMIN") app.routes { + /** + * Main page + * TODO: Create landing page + */ + get("/", { ctx -> ctx.render("index.rocker.html") }, roles(Roles.GUEST)) + /** * Sends a json object of filenames in [fileHome]s * TODO: Fix possible security issue with "../" -- cgit v1.2.3