import { POS_ROUTES } from '@/domains/pos/routes';
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,
      {
        path: 'auth',
        loadComponent: () =>
          import('@/modules/auth/pages/auth.component').then((m) => m.AuthComponent),
      },
    ],
  },
  { path: 'notfound', component: Notfound },
  { path: '**', redirectTo: '/notfound' },
];
