CIBIL, Experian, Equifax and CRIF are vendors under API Management (active = whitelisted) and the Credit Bureau dashboard reads them from there; the separate CIC whitelist and API mapping screens are removed. Mapping tables show the value each row finds in the sample payload, and bureau cards link to their set-up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.6 KiB
TypeScript
50 lines
1.6 KiB
TypeScript
/**
|
|
* 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 {}
|