2024-01-21 16:01:48 -05:00
|
|
|
import React from 'react';
|
|
|
|
|
2024-01-27 10:49:33 -05:00
|
|
|
/* blueprint/import */
|
2024-01-21 16:01:48 -05:00
|
|
|
|
|
|
|
interface ExtendedRouteDefinition {
|
|
|
|
path: string;
|
|
|
|
name: string | undefined;
|
|
|
|
component: React.ComponentType;
|
|
|
|
exact?: boolean;
|
|
|
|
}
|
|
|
|
interface ExtendedServerRouteDefinition extends ExtendedRouteDefinition {
|
|
|
|
permission: string | string[] | null;
|
|
|
|
}
|
|
|
|
interface Routes {
|
|
|
|
account: ExtendedRouteDefinition[];
|
|
|
|
server: ExtendedServerRouteDefinition[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
account: [
|
2024-01-27 10:49:33 -05:00
|
|
|
{/* routes/account */}
|
2024-01-21 16:01:48 -05:00
|
|
|
],
|
|
|
|
server: [
|
2024-01-27 10:49:33 -05:00
|
|
|
{/* routes/server */}
|
2024-01-21 16:01:48 -05:00
|
|
|
],
|
|
|
|
} as Routes;
|