mirror of https://github.com/Chocobozzz/PeerTube
31 lines
651 B
TypeScript
31 lines
651 B
TypeScript
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`
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|