aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/friends/friends.routes.ts
blob: a9a06539b55ecf507cf4c81a392823b038ef7b04 (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
28
29
30
31
32
33
34
35
36
37
import { Routes } from '@angular/router';

import { FriendsComponent } from './friends.component';
import { FriendAddComponent } from './friend-add';
import { FriendListComponent } from './friend-list';

export const FriendsRoutes: Routes = [
  {
      path: 'friends',
      component: FriendsComponent,
      children: [
        {
          path: '',
          redirectTo: 'list',
          pathMatch: 'full'
        },
        {
          path: 'list',
          component: FriendListComponent,
          data: {
            meta: {
              titleSuffix: ' - Friends list'
            }
          }
        },
        {
          path: 'add',
          component: FriendAddComponent,
          data: {
            meta: {
              titleSuffix: ' - Add friends'
            }
          }
        }
      ]
    }
];