This commit is contained in:
39
dev/routes.ts
Normal file
39
dev/routes.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import { lazy } from 'solid-js';
|
||||
import type { RouteDefinition } from '@solidjs/router';
|
||||
|
||||
export const routes: RouteDefinition[] = [
|
||||
{
|
||||
path: '/auth/login',
|
||||
component: lazy(() => import('./routes/auth/login')),
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
component: lazy(() => import('./routes/(shell)/_layout')),
|
||||
children: [
|
||||
{
|
||||
path: '/',
|
||||
component: lazy(() => import('./routes/(shell)/index')),
|
||||
},
|
||||
{
|
||||
path: '/forms',
|
||||
component: lazy(() => import('./routes/(shell)/forms')),
|
||||
},
|
||||
{
|
||||
path: '/data',
|
||||
component: lazy(() => import('./routes/(shell)/data')),
|
||||
},
|
||||
{
|
||||
path: '/modals',
|
||||
component: lazy(() => import('./routes/(shell)/modals')),
|
||||
},
|
||||
{
|
||||
path: '/layout',
|
||||
component: lazy(() => import('./routes/(shell)/layout')),
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
component: lazy(() => import('./routes/(shell)/_404')),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user