diff options
Diffstat (limited to 'client/src/app/+admin/friends/friends.routes.ts')
-rw-r--r-- | client/src/app/+admin/friends/friends.routes.ts | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/client/src/app/+admin/friends/friends.routes.ts b/client/src/app/+admin/friends/friends.routes.ts new file mode 100644 index 000000000..a9a06539b --- /dev/null +++ b/client/src/app/+admin/friends/friends.routes.ts | |||
@@ -0,0 +1,37 @@ | |||
1 | import { Routes } from '@angular/router'; | ||
2 | |||
3 | import { FriendsComponent } from './friends.component'; | ||
4 | import { FriendAddComponent } from './friend-add'; | ||
5 | import { FriendListComponent } from './friend-list'; | ||
6 | |||
7 | export const FriendsRoutes: Routes = [ | ||
8 | { | ||
9 | path: 'friends', | ||
10 | component: FriendsComponent, | ||
11 | children: [ | ||
12 | { | ||
13 | path: '', | ||
14 | redirectTo: 'list', | ||
15 | pathMatch: 'full' | ||
16 | }, | ||
17 | { | ||
18 | path: 'list', | ||
19 | component: FriendListComponent, | ||
20 | data: { | ||
21 | meta: { | ||
22 | titleSuffix: ' - Friends list' | ||
23 | } | ||
24 | } | ||
25 | }, | ||
26 | { | ||
27 | path: 'add', | ||
28 | component: FriendAddComponent, | ||
29 | data: { | ||
30 | meta: { | ||
31 | titleSuffix: ' - Add friends' | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | ] | ||
36 | } | ||
37 | ]; | ||