diff options
author | Marvin Borner | 2019-04-09 19:03:42 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-09 19:03:42 +0200 |
commit | c3b7b013af860e49dda45b5a0795fa98de99a9e8 (patch) | |
tree | 49cf012d5ab6f396503d10b4342bfe7755bfe64f | |
parent | e954f618c3ecf554aec1455cb53af80c69a213d4 (diff) |
Added index template
-rw-r--r-- | src/main/kotlin/App.kt | 6 | ||||
-rw-r--r-- | src/main/resources/views/index.rocker.html | 3 |
2 files changed, 9 insertions, 0 deletions
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 @@ -36,6 +36,12 @@ fun main() { 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 "../" */ diff --git a/src/main/resources/views/index.rocker.html b/src/main/resources/views/index.rocker.html new file mode 100644 index 0000000..3389ba9 --- /dev/null +++ b/src/main/resources/views/index.rocker.html @@ -0,0 +1,3 @@ +@layout.template("Index", RockerContent.NONE, RockerContent.NONE) -> { +<h1>Welcome to Kloud!</h1> +} |