app.routing.ts 1.41 KB
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: '', 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: '',
  component: AuthLayoutComponent,
  children: [{
    path: 'session',
    loadChildren: './components/session/session.module#SessionModule',
  }]
}, {
  path: '**',
  redirectTo: 'session/404'
}];