PeerTube/client/src/app/videos/videos.routes.ts

38 lines
806 B
TypeScript
Raw Normal View History

2016-09-06 20:40:57 +00:00
import { Routes } from '@angular/router';
2016-07-08 15:15:14 +00:00
import { VideoAddComponent } from './video-add';
import { VideoListComponent } from './video-list';
import { VideosComponent } from './videos.component';
import { VideoWatchComponent } from './video-watch';
2016-09-06 20:40:57 +00:00
export const VideosRoutes: Routes = [
2016-07-08 15:15:14 +00:00
{
path: 'videos',
component: VideosComponent,
children: [
{
path: 'list',
2016-11-04 16:25:26 +00:00
component: VideoListComponent,
data: {
meta: {
titleSuffix: ' - Videos list'
}
}
2016-07-08 15:15:14 +00:00
},
{
path: 'add',
2016-11-04 16:25:26 +00:00
component: VideoAddComponent,
data: {
meta: {
titleSuffix: ' - Add a video'
}
}
2016-07-08 15:15:14 +00:00
},
{
path: 'watch/:id',
component: VideoWatchComponent
}
]
}
];