aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index 5f468454..f607ecb8 100644
--- a/index.ts
+++ b/index.ts
@@ -131,7 +131,7 @@ app.post("/2fa", auth, users.enable2fa);
app.post("/user", auth, users.update);
app.post("/delete", auth, users.deleteSelf);
app.post("/reset", optional, users.reset);
-app.post("/upload/:type", users.upload);
+app.post("/upload/:type", auth, users.upload);
app.get("/users/delete/:username", users.del);
app.post("/acl", users.acl);
app.post("/superuser", users.superuser);