i did something

This commit is contained in:
quoije
2023-05-08 05:50:34 -04:00
parent bdff32e188
commit 4d75310690
49 changed files with 1415 additions and 278 deletions
+3 -9
View File
@@ -10,18 +10,12 @@ module.exports = function(app) {
next();
});
app.get("/api/test/all", controller.allAccess);
app.get("/api/all", controller.allAccess);
app.get("/api/test/user", [authJwt.verifyToken], controller.userBoard);
app.get("/api/user", [authJwt.verifyToken], controller.userBoard);
app.get(
"/api/test/mod",
[authJwt.verifyToken, authJwt.isModerator],
controller.moderatorBoard
);
app.get(
"/api/test/admin",
"/api/admin",
[authJwt.verifyToken, authJwt.isAdmin],
controller.adminBoard
);