first commit
This commit is contained in:
67
src/app/dashboard/dashboard-routing-module.ts
Normal file
67
src/app/dashboard/dashboard-routing-module.ts
Normal file
@@ -0,0 +1,67 @@
|
||||
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,
|
||||
canActivate: [authGuard],
|
||||
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: '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),
|
||||
},
|
||||
{
|
||||
path: 'rapport-courses',
|
||||
loadComponent: () =>
|
||||
import('./pages/report-courses/report-list').then((m) => m.ReportCoursesListPage),
|
||||
},
|
||||
{
|
||||
path: 'rapport-courses/:id',
|
||||
loadComponent: () =>
|
||||
import('./pages/report-courses/report-detail').then((m) => m.ReportCoursesDetailPage),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class DashboardRoutingModule {}
|
||||
Reference in New Issue
Block a user