/** * 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 { CicDashboardComponent } from './cic-dashboard/cic-dashboard.component'; import { CicFetchLogComponent } from './cic-fetch-log/cic-fetch-log.component'; const routes: Routes = [ Route.withShell([ { path: 'credit-bureau', data: { title: 'Credit Bureau', breadcrumb: 'Credit Bureau' }, children: [ { path: '', redirectTo: 'dashboard', pathMatch: 'full' }, { path: 'dashboard', component: CicDashboardComponent, data: { title: 'Credit Bureau Dashboard', breadcrumb: 'Dashboard' } }, { path: 'fetch-log', component: CicFetchLogComponent, data: { title: 'Fetch Log', breadcrumb: 'Fetch Log' } }, // The bureaus are set up, whitelisted and mapped under API Management like every other vendor. { path: 'bureaus', redirectTo: '/api-management/vendors', pathMatch: 'full' }, { path: 'api-mapping', redirectTo: '/api-management/vendors', pathMatch: 'full' } ] } ]) ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class CreditBureauRoutingModule {}