app.routing.ts
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { Routes } from '@angular/router';
import { AdminLayoutComponent, AuthLayoutComponent } from './core';
export const AppRoutes: Routes = [{
path: '',
component: AdminLayoutComponent,
children: [{
path: '',
loadChildren: './components/dashboard/dashboard.module#DashboardModule',
data: { title: 'DASHBOARD', breadcrumb: 'DASHBOARD' }
}, {
path: 'search',
loadChildren: './components/search/search.module#SearchModule',
data: { title: 'SEARCH', breadcrumb: 'SEARCH' }
}, {
path: 'manage-players',
loadChildren: './components/players/players.module#PlayersModule',
data: { title: 'MANAGE-PLAYERS', breadcrumb: 'MANAGE-PLAYERS' }
}, {
path: 'manage-affiliates',
loadChildren: './components/affiliates/affiliates.module#AffiliatesModule',
data: { title: 'MANAGE-AFFILIATES', breadcrumb: 'MANAGE-AFFILIATES' }
}, {
path: 'manage-operators',
loadChildren: './components/operators/operators.module#OperatorsModule',
data: { title: 'MANAGE-OPERATORS', breadcrumb: 'MANAGE-OPERATORS' }
}, {
path: 'manage-payments',
loadChildren: './components/payments/payments.module#PaymentsModule',
data: { title: 'MANAGE-PAYMENTS', breadcrumb: 'MANAGE-PAYMENTS' }
}, {
path: 'manage-roles',
loadChildren: './components/role/role.module#RoleModule',
data: { title: 'MANAGE-ROLES', breadcrumb: 'MANAGE-ROLES' }
},]
}, {
path: '',
component: AuthLayoutComponent,
children: [{
path: 'session',
loadChildren: './components/session/session.module#SessionModule',
}]
}, {
path: '**',
redirectTo: 'session/404'
}];