/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { Route } from '../core/route/route.service'; import { AccountsListComponent } from './accounts-list/accounts-list.component'; const routes: Routes = [ Route.withShell([ { path: 'accounts', children: [ { path: '', redirectTo: 'savings', pathMatch: 'full' }, { path: 'savings', component: AccountsListComponent, data: { accountType: 'savings', title: 'Savings Accounts', breadcrumb: 'Savings Accounts' } }, { path: 'current', component: AccountsListComponent, data: { accountType: 'current', title: 'Current Accounts', breadcrumb: 'Current Accounts' } }, { path: 'fixed-deposits', component: AccountsListComponent, data: { accountType: 'fixed-deposits', title: 'Fixed Deposit Accounts', breadcrumb: 'Fixed Deposit Accounts' } }, { path: 'recurring-deposits', component: AccountsListComponent, data: { accountType: 'recurring-deposits', title: 'Recurring Deposit Accounts', breadcrumb: 'Recurring Deposit Accounts' } } ] } ]) ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class AccountsRoutingModule {}