2026-05-11 13:36:06 +03:30
|
|
|
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),
|
|
|
|
|
children: [SUPER_ADMIN_ROUTES, CONSUMER_ROUTES, PROVIDER_ROUTES, PARTNER_ROUTES],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...POS_ROUTES,
|
|
|
|
|
path: 'pos',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
path: 'auth',
|
|
|
|
|
loadComponent: () => import('@/modules/auth/pages/auth.component').then((m) => m.AuthComponent),
|
|
|
|
|
},
|
|
|
|
|
{ path: 'notfound', component: Notfound },
|
|
|
|
|
{ path: '**', redirectTo: '/notfound' },
|
|
|
|
|
];
|