diff --git a/backend/src/routes/consent.js b/backend/src/routes/consent.js index c7c95f6..9936254 100644 --- a/backend/src/routes/consent.js +++ b/backend/src/routes/consent.js @@ -156,7 +156,7 @@ router.get('/api/groups/:groupId/consents', async (req, res) => { * - platformId: number * - platformConsent: boolean */ -router.get('/admin/groups/by-consent', async (req, res) => { +router.get('/api/admin/groups/by-consent', async (req, res) => { try { const filters = {}; @@ -207,7 +207,7 @@ router.get('/admin/groups/by-consent', async (req, res) => { * - year: number (optional filter) * - approved: boolean (optional filter) */ -router.get('/admin/consents/export', async (req, res) => { +router.get('/api/admin/consents/export', async (req, res) => { try { const format = req.query.format || 'json'; const filters = {}; diff --git a/backend/src/routes/groups.js b/backend/src/routes/groups.js index 8b924db..cd3fae3 100644 --- a/backend/src/routes/groups.js +++ b/backend/src/routes/groups.js @@ -72,10 +72,8 @@ router.get('/moderation/groups', async (req, res) => { consent.platform_name === platform && (consent.consented === 1 || consent.consented === true) ) ); - } else { - // Kein Filter: Zeige nur Gruppen MIT Werkstatt-Consent (das ist die Mindestanforderung) - filteredGroups = groupsWithConsents.filter(group => group.display_in_workshop); } + // else: Kein Filter - zeige ALLE Gruppen (nicht filtern) res.json({ groups: filteredGroups,