2020-11-25 08:57:17 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
2021-02-17 13:49:04 +01:00
|
|
|
import { AccountsComponent } from '@pages/accounts/accounts.component';
|
2021-05-10 18:15:25 +02:00
|
|
|
import { CreateAccountComponent } from '@pages/accounts/create-account/create-account.component';
|
|
|
|
import { AccountDetailsComponent } from '@pages/accounts/account-details/account-details.component';
|
|
|
|
import { AccountSearchComponent } from '@pages/accounts/account-search/account-search.component';
|
2020-11-25 08:57:17 +01:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', component: AccountsComponent },
|
2021-04-02 11:50:52 +02:00
|
|
|
{ path: 'search', component: AccountSearchComponent },
|
2021-02-12 07:32:08 +01:00
|
|
|
// { path: 'create', component: CreateAccountComponent },
|
2020-11-25 08:57:17 +01:00
|
|
|
{ path: ':id', component: AccountDetailsComponent },
|
2021-05-10 18:15:25 +02:00
|
|
|
{ path: '**', redirectTo: '', pathMatch: 'full' },
|
2020-11-25 08:57:17 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
2021-05-10 18:15:25 +02:00
|
|
|
exports: [RouterModule],
|
2020-11-25 08:57:17 +01:00
|
|
|
})
|
2021-05-10 18:15:25 +02:00
|
|
|
export class AccountsRoutingModule {}
|