mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-03 13:33:32 +01:00
34 lines
978 B
TypeScript
34 lines
978 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import {
|
|
RouterModule,
|
|
Routes,
|
|
} from '@angular/router';
|
|
|
|
import { HintComponent } from './accounts/hint.component';
|
|
import { LoginComponent } from './accounts/login.component';
|
|
import { RegisterComponent } from './accounts/register.component';
|
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
|
|
|
import { VaultComponent } from './vault/vault.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: '/vault', pathMatch: 'full' },
|
|
{ path: 'login', component: LoginComponent },
|
|
{ path: '2fa', component: TwoFactorComponent },
|
|
{ path: 'register', component: RegisterComponent },
|
|
{ path: 'hint', component: HintComponent },
|
|
{
|
|
path: 'vault',
|
|
component: VaultComponent,
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, {
|
|
useHash: true,
|
|
/*enableTracing: true,*/
|
|
})],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule { }
|