This commit is contained in:
2025-12-18 11:19:01 -05:00
parent 3e3d9ed89b
commit 2327e330de
11 changed files with 93 additions and 65 deletions

View File

@@ -58,12 +58,11 @@ export const SUBSITES = {
// Can be a string (just auth required) or object with roles array for role-based access
// Use 'exclude' array to exempt specific sub-paths from protection
export const PROTECTED_ROUTES = [
'/radio',
{ path: '/lighting', roles: ['lighting'] },
{ path: '/discord-logs', roles: ['discord'] },
{ path: '/api/discord', roles: ['discord'], exclude: ['/api/discord/cached-image'] },
'/TRip',
'/TRip/requests',
{ path: '/TRip', roles: ['trip'] },
{ path: '/TRip/requests', roles: ['trip'] },
{ path: '/lighting', roles: ['lighting'] },
];
// Routes that should skip auth check entirely (public routes)