peliprint/resources/scripts/blueprint/extends/routers/routes.ts
2024-03-09 18:36:16 +01:00

28 lines
No EOL
530 B
TypeScript

import React from 'react';
/* blueprint/import */
interface RouteDefinition {
path: string;
name: string | undefined;
component: React.ComponentType;
exact?: boolean;
adminOnly: boolean | false;
}
interface ServerRouteDefinition extends RouteDefinition {
permission: string | string[] | null;
nests?: number[];
}
interface Routes {
account: RouteDefinition[];
server: ServerRouteDefinition[];
}
export default {
account: [
/* routes/account */
],
server: [
/* routes/server */
],
} as Routes;