diff options
Diffstat (limited to 'src/app/app-routing.module.ts')
-rw-r--r-- | src/app/app-routing.module.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 30f732c..9019e84 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts | |||
@@ -3,17 +3,19 @@ import { RouterModule, Routes } from '@angular/router'; | |||
3 | import { IdentityListComponent } from './identity-list/identity-list.component'; | 3 | import { IdentityListComponent } from './identity-list/identity-list.component'; |
4 | import { NewIdentityComponent } from './new-identity/new-identity.component'; | 4 | import { NewIdentityComponent } from './new-identity/new-identity.component'; |
5 | import { EditIdentityComponent } from './edit-identity/edit-identity.component'; | 5 | import { EditIdentityComponent } from './edit-identity/edit-identity.component'; |
6 | import { AuthorizationRequestComponent } from './authorization-request/authorization-request.component'; | ||
6 | 7 | ||
7 | const routes: Routes = [ | 8 | const routes: Routes = [ |
8 | { path: 'index.html', component: IdentityListComponent }, | 9 | { path: '', component: IdentityListComponent }, |
9 | // { path: 'identities', component: IdentityListComponent }, | 10 | // { path: 'identities', component: IdentityListComponent }, |
10 | { path: '', redirectTo: '/index.html', pathMatch: 'full' }, | 11 | //{ path: '', redirectTo: '/index.html', pathMatch: 'full' }, |
11 | { path: 'new-identity', component: NewIdentityComponent }, | 12 | { path: 'new-identity', component: NewIdentityComponent }, |
12 | { path: 'edit-identity/:id', component: EditIdentityComponent }, | 13 | { path: 'edit-identity/:id', component: EditIdentityComponent }, |
14 | { path: 'authorization-request', component: AuthorizationRequestComponent } | ||
13 | ]; | 15 | ]; |
14 | 16 | ||
15 | @NgModule({ | 17 | @NgModule({ |
16 | imports: [RouterModule.forRoot(routes, { useHash: false })], | 18 | imports: [RouterModule.forRoot(routes, { useHash: true })], |
17 | exports: [RouterModule] | 19 | exports: [RouterModule] |
18 | }) | 20 | }) |
19 | export class AppRoutingModule { } | 21 | export class AppRoutingModule { } |