This commit is contained in:
Jan K9f 2025-09-03 08:57:50 +02:00
commit 4c9a23c547
Signed by: jank
GPG key ID: 22BEAC760B3333D6

View file

@ -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',
},
];