Files
psp_panel/src/app.routes.ts
T
2026-03-29 18:07:10 +03:30

41 lines
1.4 KiB
TypeScript

import { CONSUMER_ROUTES } from '@/domains/consumer/routes';
import { PARTNER_ROUTES } from '@/domains/partner/routes';
import { POS_ROUTES } from '@/domains/pos/routes';
import { PROVIDER_ROUTES } from '@/domains/provider/routes';
import { SUPER_ADMIN_ROUTES } from '@/domains/superAdmin/routes';
import { AuthComponent } from '@/modules/auth/pages/auth.component';
import { Routes } from '@angular/router';
import { AppLayout } from './app/layout/default/app.layout.component';
import { Dashboard } from './app/pages/dashboard/dashboard';
import { Documentation } from './app/pages/documentation/documentation';
import { Notfound } from './app/pages/notfound/notfound.component';
export const appRoutes: Routes = [
{
path: '',
component: AppLayout,
children: [
SUPER_ADMIN_ROUTES,
CONSUMER_ROUTES,
PROVIDER_ROUTES,
PARTNER_ROUTES,
{ path: 'ng', component: Dashboard },
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
{ path: 'documentation', component: Documentation },
{ path: 'pages', loadChildren: () => import('./app/pages/pages.routes') },
],
},
POS_ROUTES,
// {
// path: 'pos/:posId',
// component: POSComponent,
// },
{
path: 'auth',
component: AuthComponent,
},
{ path: 'notfound', component: Notfound },
// { path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') },
{ path: '**', redirectTo: '/notfound' },
];