/* eslint-disable prettier/prettier */ import type { Routes } from '@angular/router'; import { MainLayoutComponent } from './core/layout/main-layout/main-layout.component'; import { AuthGuard } from './_helpers/auth.guard'; import { LoginStandardUserComponent } from './account/auth/login-standard-user/login-standard-user.component'; import { AdminTestComponent } from './admin-test/admin-test.component'; export const routes: Routes = [ { path: 'auth', loadChildren: () => import('./account/auth/auth.routes').then(m => m.authRoutes), }, // Redirect empty path to '/auth' { path: '', pathMatch: 'full', redirectTo: 'auth' }, { path: '', component: MainLayoutComponent, children: [ { path: 'admin', component: AdminTestComponent, // canActivate: [AuthGuard], }, { path: 'transactions', loadChildren: () => import('./trafics/transactions/transaction.routes').then( c => c.transactionsRoutes ), // canActivate: [AuthGuard], }, { path: 'integrations', loadChildren: () => import('./integrations/integration/integration.routes').then( c => c.integrationRoutes ), }, { path: 'utilisateurs', loadChildren: () => import('./utilisateurs/user.routes').then(c => c.userRoutes), }, { path: 'assistances', loadChildren: () => import('./assistances/service.routes').then(c => c.userRoutes), }, { path: 'tpe', loadChildren: () => import('./tpe/tpe.routes').then(c => c.tpeRoutes), }, { path: 'reversements', loadChildren: () => import('./reversements/reversement/reversement.routes').then( c => c.reversementRoutes ), }, { path: 'dash', loadComponent: () => import( './admin/dashboards/beasy-dashboard/beasy-dashboard.component' ).then(c => c.BeasyDashboardComponent), }, { path: 'application-android', loadComponent: () => import('./application-android/application-android.component').then( c => c.ApplicationAndroidComponent ), }, { path: 'compte-associe', loadComponent: () => import('./compte-associe/compte-associe.component').then( c => c.CompteAssocieComponent ), }, { path: 'utilisateurs', loadComponent: () => import('./utilisateurs/utilisateurs.component').then( c => c.UtilisateursComponent ), }, { path: 'facturation', loadComponent: () => import('./facturation/facturation.component').then( c => c.FacturationComponent ), // canActivate: [AuthGuard], }, { path: 'etablissement', loadComponent: () => import('./etablissement/etablissement.component').then( c => c.EtablissementComponent ), }, { path: 'ecommerce', loadComponent: () => import('./ecommerce/ecommerce.component').then( c => c.EcommerceComponent ), }, ], canActivate: [AuthGuard], }, { path: '**', component: LoginStandardUserComponent, }, ];