2026-05-16 16:11:58 +03:30
|
|
|
import { posAuthNamedRoutes } from '@/domains/pos/modules/auth/constants';
|
2026-04-27 21:53:11 +03:30
|
|
|
import { POS_ROUTES } from '@/domains/pos/routes';
|
2026-05-21 21:35:34 +03:30
|
|
|
import { PUBLIC_SALE_INVOICES_ROUTES } from '@/modules/saleInvoices/constants';
|
2026-04-27 21:53:11 +03:30
|
|
|
import { Notfound } from '@/pages/notfound/notfound.component';
|
|
|
|
|
import { Routes } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
export const appRoutes: Routes = [
|
2026-05-04 20:02:10 +03:30
|
|
|
{
|
|
|
|
|
path: '',
|
2026-05-11 13:36:06 +03:30
|
|
|
loadComponent: () =>
|
|
|
|
|
import('@/domains/pos/layouts/layout.component').then((m) => m.PosLayoutComponent),
|
2026-05-16 16:11:58 +03:30
|
|
|
children: [POS_ROUTES],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...posAuthNamedRoutes.login,
|
|
|
|
|
path: 'auth',
|
2026-04-27 21:53:11 +03:30
|
|
|
},
|
2026-05-21 21:35:34 +03:30
|
|
|
...PUBLIC_SALE_INVOICES_ROUTES,
|
|
|
|
|
{ path: '**', component: Notfound },
|
2026-04-27 21:53:11 +03:30
|
|
|
];
|