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

28 lines
608 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',
component: VideoListComponent
},
{
path: 'add',
component: VideoAddComponent
},
{
path: 'watch/:id',
component: VideoWatchComponent
}
]
}
];