website refactor

This commit is contained in:
2026-01-18 01:03:54 +01:00
parent 93e4bdcf37
commit 350c78504d
5 changed files with 77 additions and 49 deletions

View File

@@ -83,6 +83,7 @@ export interface RouteGroup {
root: string;
leaderboard: string;
detail: (id: string) => string;
create: string;
};
driver: {
root: string;
@@ -180,6 +181,7 @@ export const routes: RouteGroup & { leaderboards: { root: string; drivers: strin
root: '/teams',
leaderboard: '/teams/leaderboard',
detail: (id: string) => `/teams/${id}`,
create: '/teams/create',
},
driver: {
root: '/drivers',
@@ -288,7 +290,7 @@ export const routeMatchers = {
logger.info('[RouteConfig] Path is public (driver detail)', { path });
return true;
}
if (group === 'teams') {
if (group === 'teams' && slug !== 'create') {
logger.info('[RouteConfig] Path is public (team detail)', { path });
return true;
}