aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin/requests/requests.routes.ts
blob: 70fbf41c3c02929f80747f24dcc631dbe6ef423d (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: {
              titleSuffix: ' - Request stats'
            }
          }
        }
      ]
    }
];