import { RouterModule, Routes } from '@angular/router'
import { VideoLocalComponent } from '@app/videos/video-list/video-local.component'
import { MetaGuard } from '@ngx-meta/core'
-import { VideoSearchComponent } from './video-list'
import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'
import { VideoTrendingComponent } from './video-list/video-trending.component'
import { VideosComponent } from './videos.component'
}
}
},
- {
- path: 'search',
- component: VideoSearchComponent,
- data: {
- meta: {
- title: 'Search videos'
- }
- }
- },
{
path: 'upload',
loadChildren: 'app/videos/+video-edit/video-add.module#VideoAddModule',
}
},
{
- path: 'edit/:uuid',
+ path: 'update/:uuid',
loadChildren: 'app/videos/+video-edit/video-update.module#VideoUpdateModule',
data: {
meta: {
}
},
{
- path: ':uuid',
- pathMatch: 'full',
+ path: 'watch/:uuid/comments/:commentId',
redirectTo: 'watch/:uuid'
},
{