aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+admin/request-schedulers/request-schedulers.routes.ts
blob: c2564de15864d8a10167a4bb3c59cac35912bc90 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                        
 

                                                 

                                                                            
 
                                                
   
                     
                                          



                                                    







                            
                                                   


                                  
           
         



       
import { Routes } from '@angular/router'

import { UserRightGuard } from '../../core'
import { UserRight } from '../../../../../shared'
import { RequestSchedulersComponent } from './request-schedulers.component'
import { RequestSchedulersStatsComponent } from './request-schedulers-stats'

export const RequestSchedulersRoutes: Routes = [
  {
    path: 'requests',
    component: RequestSchedulersComponent,
    canActivate: [ UserRightGuard ],
    data: {
      userRight: UserRight.MANAGE_REQUEST_SCHEDULERS
    },
    children: [
      {
        path: '',
        redirectTo: 'stats',
        pathMatch: 'full'
      },
      {
        path: 'stats',
        component: RequestSchedulersStatsComponent,
        data: {
          meta: {
            title: 'Request stats'
          }
        }
      }
    ]
  }
]