Add access denied page and refactor

This commit is contained in:
Çetin
2022-01-15 11:53:52 +03:00
parent 2b918bfd38
commit dc2833147f
9 changed files with 102 additions and 9 deletions

View File

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