2 Commits

Author SHA1 Message Date
Jose
aab5e8772d Merge remote-tracking branch 'refs/remotes/origin/dev' into dev 2025-11-14 14:31:17 +01:00
Jose
d93581fad6 fix: users can now download mods without auth 2025-11-14 14:17:01 +01:00

View File

@@ -19,9 +19,9 @@ public class MMCDataRouter {
router.route().handler(BodyHandler.create());
router.get(MMCEndpoints.MODS).handler(authGuard.check()).handler(hModData::getAll);
router.get(MMCEndpoints.MOD).handler(authGuard.check()).handler(hModData::getById);
router.post(MMCEndpoints.MODS).handler(BodyHandler.create().setBodyLimit(100 * 1024 * 1024)).handler(authGuard.check()).handler(hModData::create);
router.get(MMCEndpoints.MODS).handler(hModData::getAll);
router.get(MMCEndpoints.MOD).handler(hModData::getById);
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.delete(MMCEndpoints.MOD).handler(authGuard.check(MMCUserRole.ADMIN)).handler(hModData::delete);