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 8fb289c..39275ec 100644
--- a/src/main/kotlin/App.kt
+++ b/src/main/kotlin/App.kt
@@ -118,6 +118,11 @@ fun main() {
* Shows the shared file
*/
get("/shared", fileController::renderShared, roles(Roles.GUEST))
+
+ /**
+ * Shares file in directory
+ */
+ post("/shared", fileController::handleSharedFile, roles(Roles.GUEST))
}
}