]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+error-page/error-page-routing.module.ts
Update angular
[github/Chocobozzz/PeerTube.git] / client / src / app / +error-page / error-page-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { ErrorPageComponent } from './error-page.component'
4 import { MenuGuards } from '@app/core'
5
6 const errorPageRoutes: Routes = [
7 {
8 path: '',
9 component: ErrorPageComponent,
10 canActivate: [ MenuGuards.close(true) ],
11 canDeactivate: [ MenuGuards.open(true) ],
12 data: {
13 meta: {
14 title: $localize`Not found`
15 }
16 }
17 }
18 ]
19
20 @NgModule({
21 imports: [ RouterModule.forChild(errorPageRoutes) ],
22 exports: [ RouterModule ]
23 })
24 export class ErrorPageRoutingModule {}