mirror of https://github.com/Chocobozzz/PeerTube
38 lines
748 B
TypeScript
38 lines
748 B
TypeScript
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: {
|
|
title: 'Friends list'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
path: 'add',
|
|
component: FriendAddComponent,
|
|
data: {
|
|
meta: {
|
|
title: 'Add friends'
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|