76 lines
1.7 KiB
TypeScript
76 lines
1.7 KiB
TypeScript
import type { Route } from '../../shared/types.ts'
|
|
|
|
export default [
|
|
{
|
|
path: '/',
|
|
title: 'Start',
|
|
component: () => import('./components/start_page.tsx'),
|
|
auth: true,
|
|
},
|
|
{
|
|
path: '/membership',
|
|
title: 'Membership',
|
|
auth: true,
|
|
routes: [
|
|
{
|
|
path: '/membership/users',
|
|
title: 'Users',
|
|
component: () => import('./components/users_page.tsx'),
|
|
auth: true,
|
|
},
|
|
{
|
|
path: '/membership/roles',
|
|
title: 'Roles',
|
|
component: () => import('./components/roles_page.tsx'),
|
|
auth: true,
|
|
},
|
|
{
|
|
path: '/membership/admissions',
|
|
title: 'Admissions',
|
|
component: () => import('./components/admissions_page.tsx'),
|
|
auth: true,
|
|
},
|
|
{
|
|
path: '/membership/invites',
|
|
title: 'Invites',
|
|
component: () => import('./components/invites_page.tsx'),
|
|
auth: true,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/errors',
|
|
title: 'Errors',
|
|
component: () => import('./components/errors_page.tsx'),
|
|
auth: true,
|
|
},
|
|
{
|
|
path: '/login',
|
|
title: 'Login',
|
|
component: () => import('./components/login_page.tsx'),
|
|
auth: false,
|
|
nav: false,
|
|
},
|
|
{
|
|
path: '/register',
|
|
title: 'Register',
|
|
component: () => import('./components/register_page.tsx'),
|
|
auth: false,
|
|
nav: false,
|
|
},
|
|
{
|
|
path: '/change-password',
|
|
title: 'Change Password',
|
|
component: () => import('./components/change_password_page.tsx'),
|
|
auth: false,
|
|
nav: false,
|
|
},
|
|
{
|
|
path: '/forgot-password',
|
|
title: 'Forgot Password',
|
|
component: () => import('./components/forgot_password_page.tsx'),
|
|
auth: false,
|
|
nav: false,
|
|
},
|
|
] as Route[]
|