Add access denied page and refactor
This commit is contained in:
@@ -27,6 +27,7 @@ import { LandingComponent } from './components/landing/landing.component';
|
||||
import { LoginComponent } from './components/login/login.component';
|
||||
import { ErrorComponent } from './components/error/error.component';
|
||||
import { NotfoundComponent } from './components/notfound/notfound.component';
|
||||
import { AccessComponent } from './components/access/access.component';
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forRoot([
|
||||
@@ -62,6 +63,7 @@ import { NotfoundComponent } from './components/notfound/notfound.component';
|
||||
{path:'pages/login', component: LoginComponent},
|
||||
{path:'pages/error', component: ErrorComponent},
|
||||
{path:'pages/notfound', component: NotfoundComponent},
|
||||
{path:'pages/access', component: AccessComponent},
|
||||
{path: '**', redirectTo: 'pages/notfound'},
|
||||
], {scrollPositionRestoration: 'enabled'})
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user