404 wildcard for subpaths

This commit is contained in:
Cagatay Civici
2022-10-27 21:27:36 +03:00
parent 73c7e63414
commit 1f7ef417fc
6 changed files with 11 additions and 7 deletions

View File

@@ -5,7 +5,8 @@ import { RouterModule } from '@angular/router';
imports: [RouterModule.forChild([
{ path: 'error', loadChildren: () => import('./error/error.module').then(m => m.ErrorModule) },
{ path: 'access', loadChildren: () => import('./access/access.module').then(m => m.AccessModule) },
{ path: 'login', loadChildren: () => import('./login/login.module').then(m => m.LoginModule) }
{ path: 'login', loadChildren: () => import('./login/login.module').then(m => m.LoginModule) },
{ path: '**', redirectTo: '/notfound' }
])],
exports: [RouterModule]
})