Files
psp_panel/src/tenants/default/app.routes.ts
T

29 lines
930 B
TypeScript
Raw Normal View History

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 { Notfound } from '@/pages/notfound/notfound.component';
import { Routes } from '@angular/router';
export const appRoutes: Routes = [
{
path: '',
loadComponent: () => import('@/layout/default/app.layout.component').then((m) => m.AppLayout),
2026-05-11 15:59:57 +03:30
children: [
SUPER_ADMIN_ROUTES,
CONSUMER_ROUTES,
PROVIDER_ROUTES,
PARTNER_ROUTES,
...POS_ROUTES.children!,
],
},
2026-05-11 15:59:57 +03:30
{
path: 'auth',
loadComponent: () => import('@/modules/auth/pages/auth.component').then((m) => m.AuthComponent),
},
{ path: 'notfound', component: Notfound },
{ path: '**', redirectTo: '/notfound' },
];