aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/App.kt
diff options
context:
space:
mode:
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))