loadChildren: () => import('./+video-channels/video-channels.module').then(m => m.VideoChannelsModule),
canActivateChild: [ MetaGuard ]
},
+ {
+ path: 'manage',
+ loadChildren: () => import('./+manage/manage.module').then(m => m.ManageModule),
+ canActivateChild: [ MetaGuard ]
+ },
+ {
+ path: 'p',
+ loadChildren: () => import('./+plugin-pages/plugin-pages.module').then(m => m.PluginPagesModule),
+ canActivateChild: [ MetaGuard ]
+ },
{
path: 'about',
{
path: 'videos/upload',
loadChildren: () => import('@app/+videos/+video-edit/video-add.module').then(m => m.VideoAddModule),
+ canActivateChild: [ MetaGuard ],
data: {
meta: {
title: $localize`Upload a video`
{
path: 'videos/update/:uuid',
loadChildren: () => import('@app/+videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule),
+ canActivateChild: [ MetaGuard ],
data: {
meta: {
title: $localize`Edit a video`
canActivateChild: [ MetaGuard ]
},
+ {
+ path: 'studio',
+ loadChildren: () => import('./+video-studio/video-studio.module').then(m => m.VideoStudioModule),
+ canActivateChild: [ MetaGuard ]
+ },
+
+ {
+ path: 'stats',
+ loadChildren: () => import('./+stats/stats.module').then(m => m.StatsModule),
+ canActivateChild: [ MetaGuard ]
+ },
+
// Matches /@:actorName
{
matcher: (url): UrlMatchResult => {
routes.push({
path: '**',
- loadChildren: () => import('./+page-not-found/page-not-found.module').then(m => m.PageNotFoundModule)
+ loadChildren: () => import('./+error-page/error-page.module').then(m => m.ErrorPageModule)
})
@NgModule({
imports: [
RouterModule.forRoot(routes, {
useHash: Boolean(history.pushState) === false,
+ // Redefined in app component
scrollPositionRestoration: 'disabled',
preloadingStrategy: PreloadSelectedModulesList,
anchorScrolling: 'disabled'