2018-04-04 04:14:54 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import {
|
|
|
|
RouterModule,
|
|
|
|
Routes,
|
|
|
|
} from '@angular/router';
|
|
|
|
|
2018-04-04 16:08:30 +02:00
|
|
|
import { EnvironmentComponent } from './accounts/environment.component';
|
|
|
|
import { HintComponent } from './accounts/hint.component';
|
2018-04-04 20:19:44 +02:00
|
|
|
import { HomeComponent } from './accounts/home.component';
|
2018-04-04 04:14:54 +02:00
|
|
|
import { LoginComponent } from './accounts/login.component';
|
2018-04-04 16:08:30 +02:00
|
|
|
import { RegisterComponent } from './accounts/register.component';
|
|
|
|
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
|
|
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
2018-04-04 04:14:54 +02:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2018-04-04 20:19:44 +02:00
|
|
|
{ path: '', component: HomeComponent },
|
2018-04-04 04:14:54 +02:00
|
|
|
{ path: 'login', component: LoginComponent },
|
2018-04-04 16:08:30 +02:00
|
|
|
{ path: '2fa', component: TwoFactorComponent },
|
|
|
|
{ path: '2fa-options', component: TwoFactorOptionsComponent },
|
|
|
|
{ path: 'register', component: RegisterComponent },
|
|
|
|
{ path: 'hint', component: HintComponent },
|
|
|
|
{ path: 'environment', component: EnvironmentComponent },
|
2018-04-04 04:14:54 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes, {
|
|
|
|
useHash: true,
|
|
|
|
/*enableTracing: true,*/
|
|
|
|
})],
|
|
|
|
exports: [RouterModule],
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|