website refactor
This commit is contained in:
@@ -88,6 +88,10 @@ export interface RouteGroup {
|
||||
root: string;
|
||||
detail: (id: string) => string;
|
||||
};
|
||||
leaderboards: {
|
||||
root: string;
|
||||
drivers: string;
|
||||
};
|
||||
error: {
|
||||
notFound: string;
|
||||
serverError: string;
|
||||
@@ -113,7 +117,7 @@ export interface RouteGroup {
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export const routes: RouteGroup = {
|
||||
export const routes: RouteGroup & { leaderboards: { root: string; drivers: string } } = {
|
||||
auth: {
|
||||
login: '/auth/login',
|
||||
signup: '/auth/signup',
|
||||
@@ -181,6 +185,10 @@ export const routes: RouteGroup = {
|
||||
root: '/drivers',
|
||||
detail: (id: string) => `/drivers/${id}`,
|
||||
},
|
||||
leaderboards: {
|
||||
root: '/leaderboards',
|
||||
drivers: '/leaderboards/drivers',
|
||||
},
|
||||
error: {
|
||||
notFound: '/404',
|
||||
serverError: '/500',
|
||||
|
||||
Reference in New Issue
Block a user