Compare commits
2 Commits
d3f4330fa8
...
aab5e8772d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aab5e8772d | ||
|
|
d93581fad6 |
@@ -19,9 +19,9 @@ public class MMCDataRouter {
|
|||||||
|
|
||||||
router.route().handler(BodyHandler.create());
|
router.route().handler(BodyHandler.create());
|
||||||
|
|
||||||
router.get(MMCEndpoints.MODS).handler(authGuard.check()).handler(hModData::getAll);
|
router.get(MMCEndpoints.MODS).handler(hModData::getAll);
|
||||||
router.get(MMCEndpoints.MOD).handler(authGuard.check()).handler(hModData::getById);
|
router.get(MMCEndpoints.MOD).handler(hModData::getById);
|
||||||
router.post(MMCEndpoints.MODS).handler(BodyHandler.create().setBodyLimit(100 * 1024 * 1024)).handler(authGuard.check()).handler(hModData::create);
|
router.post(MMCEndpoints.MODS).handler(BodyHandler.create().setBodyLimit(100 * 1024 * 1024)).handler(authGuard.check(MMCUserRole.ADMIN)).handler(hModData::create);
|
||||||
router.put(MMCEndpoints.MOD).handler(authGuard.check(MMCUserRole.ADMIN)).handler(hModData::update);
|
router.put(MMCEndpoints.MOD).handler(authGuard.check(MMCUserRole.ADMIN)).handler(hModData::update);
|
||||||
router.delete(MMCEndpoints.MOD).handler(authGuard.check(MMCUserRole.ADMIN)).handler(hModData::delete);
|
router.delete(MMCEndpoints.MOD).handler(authGuard.check(MMCUserRole.ADMIN)).handler(hModData::delete);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user