404
This commit is contained in:
parent
a009acb4e3
commit
4c9a23c547
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { authGuard } from './service/auth.guard';
|
||||
import NotFoundComponent from './component/not-found/not-found.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
|
@ -32,8 +33,12 @@ export const routes: Routes = [
|
|||
],
|
||||
canActivate: [authGuard],
|
||||
},
|
||||
{
|
||||
path: '404',
|
||||
component: NotFoundComponent,
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
loadComponent: () => import('./component/not-found/not-found.component'),
|
||||
redirectTo: '404',
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue