aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/App.kt
diff options
context:
space:
mode:
authorMarvin Borner2019-05-16 18:07:53 +0200
committerMarvin Borner2019-05-16 18:07:53 +0200
commit5cbb9d1ffe6ad4b7d89c0b189a7821d1005bbdda (patch)
treedcc1c61837d92e4e1224b79295075d43d1989b0e /src/main/kotlin/App.kt
parentf98205bb8215de29aacf5bc6591734af2d4c4d12 (diff)
Fixed many issues with directory uploading and sharing
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/kotlin/App.kt')
-rw-r--r--src/main/kotlin/App.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt
index 3607702..12b70db 100644
--- a/src/main/kotlin/App.kt
+++ b/src/main/kotlin/App.kt
@@ -147,6 +147,11 @@ fun main(args: Array<String>) {
post("/upload/*", fileController::upload, roles(Roles.USER))
/**
+ * Indexes every file of the user into the database
+ */
+ get("/index", fileController::indexAll, roles(Roles.USER))
+
+ /**
* Deletes file
*/
post("/delete/*", fileController::delete, roles(Roles.USER))