2026-03-16 00:35:34 +03:30
|
|
|
import { CONSUMER_ROUTES } from '@/domains/consumer/routes';
|
|
|
|
|
import { PARTNER_ROUTES } from '@/domains/partner/routes';
|
2026-03-18 13:35:57 +03:30
|
|
|
import { POS_ROUTES } from '@/domains/pos/routes';
|
2026-03-16 00:35:34 +03:30
|
|
|
import { PROVIDER_ROUTES } from '@/domains/provider/routes';
|
2026-03-10 13:36:45 +03:30
|
|
|
import { SUPER_ADMIN_ROUTES } from '@/domains/superAdmin/routes';
|
2025-12-21 19:09:13 +03:30
|
|
|
import { AuthComponent } from '@/modules/auth/pages/auth.component';
|
2026-04-13 13:22:40 +03:30
|
|
|
import { Notfound } from '@/pages/notfound/notfound.component';
|
2025-01-03 12:53:05 +03:00
|
|
|
import { Routes } from '@angular/router';
|
2026-03-18 13:35:57 +03:30
|
|
|
import { AppLayout } from './app/layout/default/app.layout.component';
|
2025-01-07 13:04:10 +03:00
|
|
|
import { Dashboard } from './app/pages/dashboard/dashboard';
|
|
|
|
|
import { Documentation } from './app/pages/documentation/documentation';
|
2025-01-03 12:53:05 +03:00
|
|
|
|
2025-01-07 12:16:16 +03:00
|
|
|
export const appRoutes: Routes = [
|
2025-12-04 23:34:00 +03:30
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
component: AppLayout,
|
|
|
|
|
children: [
|
2026-03-10 13:36:45 +03:30
|
|
|
SUPER_ADMIN_ROUTES,
|
2026-03-16 00:35:34 +03:30
|
|
|
CONSUMER_ROUTES,
|
|
|
|
|
PROVIDER_ROUTES,
|
|
|
|
|
PARTNER_ROUTES,
|
2026-01-04 13:45:45 +03:30
|
|
|
{ path: 'ng', component: Dashboard },
|
2025-12-04 23:34:00 +03:30
|
|
|
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
|
|
|
|
|
{ path: 'documentation', component: Documentation },
|
|
|
|
|
{ path: 'pages', loadChildren: () => import('./app/pages/pages.routes') },
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-03-29 18:07:10 +03:30
|
|
|
POS_ROUTES,
|
2026-03-10 13:36:45 +03:30
|
|
|
// {
|
|
|
|
|
// path: 'pos/:posId',
|
|
|
|
|
// component: POSComponent,
|
|
|
|
|
// },
|
2025-12-21 19:09:13 +03:30
|
|
|
{
|
|
|
|
|
path: 'auth',
|
|
|
|
|
component: AuthComponent,
|
|
|
|
|
},
|
2025-12-04 23:34:00 +03:30
|
|
|
{ path: 'notfound', component: Notfound },
|
2025-12-21 19:09:13 +03:30
|
|
|
// { path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') },
|
2025-12-04 23:34:00 +03:30
|
|
|
{ path: '**', redirectTo: '/notfound' },
|
2025-01-03 12:53:05 +03:00
|
|
|
];
|