aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/requests/requests.routes.ts
blob: 84db3fea88476dcdd14306a65def27a086201258 (plain) (blame)
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
import { Routes } from '@angular/router'

import { RequestsComponent } from './requests.component'
import { RequestStatsComponent } from './request-stats'

export const RequestsRoutes: Routes = [
  {
    path: 'requests',
    component: RequestsComponent,
    children: [
      {
        path: '',
        redirectTo: 'stats',
        pathMatch: 'full'
      },
      {
        path: 'stats',
        component: RequestStatsComponent,
        data: {
          meta: {
            title: 'Request stats'
          }
        }
      }
    ]
  }
]