123456789101112131415161718192021222324252627282930 |
- import { Routes } from '@angular/router'
- import { UserRightGuard } from '@app/core'
- import { UserRight } from '@peertube/peertube-models'
- import { VideoListComponent } from './video-list.component'
- export const videosRoutes: Routes = [
- {
- path: 'videos',
- canActivate: [ UserRightGuard ],
- data: {
- userRight: UserRight.SEE_ALL_VIDEOS
- },
- children: [
- {
- path: '',
- redirectTo: 'list',
- pathMatch: 'full'
- },
- {
- path: 'list',
- component: VideoListComponent,
- data: {
- meta: {
- title: $localize`Videos list`
- }
- }
- }
- ]
- }
- ]
|