aaeea7a7b0
The WebApi no longer authenticates, so the login validates against the accounts in auth.service.ts and the session lives in sessionStorage. The guard, the domain guard and the filtering of the import workspace and governance stay as they were; the interceptor and the /auth proxy entries go away because nothing answers 401.
25 lines
1.3 KiB
TypeScript
25 lines
1.3 KiB
TypeScript
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
|
|
import { provideHttpClient } from '@angular/common/http';
|
|
import { provideRouter } from '@angular/router';
|
|
import { routes } from './app.routes';
|
|
import { IndicadoresService } from './features/indicadores/indicadores.service';
|
|
import { IndicadoresPeriodos } from './features/indicadores/indicadores-periodos';
|
|
import { TeaSeguimientoService } from './features/indicadores/tea-seguimiento.service';
|
|
import { FhirIndicadoresPeriodos, FhirIndicadoresService } from './features/indicadores/indicadores-fhir';
|
|
import { FhirTeaSeguimientoService } from './features/indicadores/tea-seguimiento-fhir';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideBrowserGlobalErrorListeners(),
|
|
provideRouter(routes),
|
|
// La sesión es del navegador (`auth/auth.service.ts`): no hay interceptor
|
|
// porque la WebApi no responde 401.
|
|
provideHttpClient(),
|
|
// The indicator page reads the WebApi's FHIR endpoint; without these lines it reads the indicator JSON contract
|
|
// (`/<domain>/indicadores/<id>/datos`, `/tea/seguimiento`).
|
|
{ provide: IndicadoresService, useClass: FhirIndicadoresService },
|
|
{ provide: IndicadoresPeriodos, useClass: FhirIndicadoresPeriodos },
|
|
{ provide: TeaSeguimientoService, useClass: FhirTeaSeguimientoService },
|
|
]
|
|
};
|