Ajout d'un cache sur les appels vers les
données de type "référentiel"
This commit is contained in:
@@ -35,6 +35,7 @@ import { RequestCache } from "../services/request-cache.service";
|
||||
import { AuthGuardService } from "../services/auth-guard.service";
|
||||
import { ImageService } from "../services/image.service";
|
||||
import { ConfigurationHelper } from "../services/configuration-helper";
|
||||
import { ServiceRefData } from "../services/service-ref-data.service";
|
||||
|
||||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
||||
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
||||
@@ -68,7 +69,6 @@ import { JumpInfosComponent } from './jump-infos/jump-infos.component';
|
||||
|
||||
const appRoutes: Routes = [
|
||||
{ path: "", component: DefaultComponent, canActivate: [AuthGuardService] },
|
||||
|
||||
{
|
||||
path: "summary",
|
||||
component: SummaryComponent,
|
||||
@@ -109,10 +109,7 @@ const appRoutes: Routes = [
|
||||
component: UserProfileComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
},
|
||||
|
||||
{ path: "login", component: LoginComponent },
|
||||
|
||||
// { path: "**", redirectTo: "" },
|
||||
];
|
||||
|
||||
// Déclaration de la fonction d'initialisation de la configuration
|
||||
@@ -186,6 +183,7 @@ export function initConfig(configService: ConfigurationHelper) {
|
||||
RequestCache,
|
||||
ConfigurationHelper,
|
||||
DatePipe,
|
||||
ServiceRefData,
|
||||
{ provide: APP_INITIALIZER, useFactory: initConfig, deps: [ConfigurationHelper], multi: true },
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: JwtAuthInterceptor, multi: true },
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }
|
||||
|
||||
Reference in New Issue
Block a user