2018-01-16 21:58:17 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import {
|
|
|
|
RouterModule,
|
|
|
|
Routes,
|
|
|
|
} from '@angular/router';
|
|
|
|
|
|
|
|
import { LoginComponent } from './accounts/login.component';
|
2018-01-16 22:12:26 +01:00
|
|
|
import { VaultComponent } from './vault/vault.component';
|
2018-01-16 21:58:17 +01:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', redirectTo: '/login', pathMatch: 'full' },
|
|
|
|
{ path: 'login', component: LoginComponent },
|
2018-01-16 22:12:26 +01:00
|
|
|
{ path: 'vault', component: VaultComponent },
|
2018-01-16 21:58:17 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes/*, { enableTracing: true }*/)],
|
|
|
|
exports: [RouterModule],
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|