aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin/friends/friends.routes.ts
blob: 7fdef68f90585eb361f85c5882b63f3188c298b4 (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 { 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
        },
        {
          path: 'add',
          component: FriendAddComponent
        }
      ]
    }
];