69 lines
2.0 KiB
TypeScript
69 lines
2.0 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { Layout } from './layout/layout';
|
|
import { authGuard } from '../core/guards/auth-guard';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: Layout,
|
|
children: [
|
|
{ path: '', loadComponent: () => import('./pages/main/main').then((m) => m.Main) },
|
|
{
|
|
path: 'courses',
|
|
loadComponent: () => import('./pages/courses/courses').then((m) => m.Course),
|
|
},
|
|
{
|
|
path: 'hippodromes',
|
|
loadComponent: () => import('./pages/hippodrome/hippodrome').then((m) => m.Hippodrome),
|
|
},
|
|
{
|
|
path: 'reunions',
|
|
loadComponent: () => import('./pages/reunion/reunion').then((m) => m.ReunionList),
|
|
},
|
|
{
|
|
path: 'resultat',
|
|
loadComponent: () => import('./pages/rapport/rapport').then((m) => m.Rapport),
|
|
},
|
|
{
|
|
path: 'gains',
|
|
loadComponent: () => import('./pages/gains/gains').then((m) => m.Gains),
|
|
},
|
|
{
|
|
path: 'gains/:id',
|
|
loadComponent: () => import('./pages/gain-details/gain-details').then((m) => m.GainDetails),
|
|
},
|
|
{
|
|
path: 'users',
|
|
loadComponent: () => import('./pages/users/users').then((m) => m.UsersPage),
|
|
},
|
|
{
|
|
path: 'profile',
|
|
loadComponent: () => import('./pages/profile/profile').then((m) => m.ProfilePage),
|
|
},
|
|
{
|
|
path: 'roles',
|
|
loadComponent: () => import('./pages/roles/roles').then((m) => m.RolesPage),
|
|
},
|
|
{
|
|
path: 'tpes',
|
|
loadComponent: () => import('./pages/tpe/tpe').then((m) => m.TpePage),
|
|
},
|
|
{
|
|
path: 'agents',
|
|
loadComponent: () => import('./pages/agents/agents').then((m) => m.AgentsPage),
|
|
},
|
|
{
|
|
path: 'limits',
|
|
loadComponent: () => import('./pages/limits/limits').then((m) => m.LimitsPage),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class DashboardRoutingModule {}
|