aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/App.kt
diff options
context:
space:
mode:
authorMarvin Borner2019-04-22 22:07:34 +0200
committerMarvin Borner2019-04-22 22:07:34 +0200
commitc056361f5449ae6a4d94b71b0efd2f67493502f7 (patch)
treedfcbe2dc32e57048f50679c296636af9a5b59198 /src/main/kotlin/App.kt
parenta5f26def08e100bf74e90d09298ad81e9224e249 (diff)
Added viewing of files in shared directories
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 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))
}
}