import { posAuthNamedRoutes } from '@/domains/pos/modules/auth/constants';
import { POS_ROUTES } from '@/domains/pos/routes';
import { PUBLIC_SALE_INVOICES_ROUTES } from '@/modules/saleInvoices/constants';
import { Notfound } from '@/pages/notfound/notfound.component';
import { Routes } from '@angular/router';

export const appRoutes: Routes = [
  {
    path: '',
    loadComponent: () =>
      import('@/domains/pos/layouts/layout.component').then((m) => m.PosLayoutComponent),
    children: [POS_ROUTES],
  },
  {
    ...posAuthNamedRoutes.login,
    path: 'auth',
  },
  ...PUBLIC_SALE_INVOICES_ROUTES,
  { path: '**', component: Notfound },
];
