the users request only go through user interceptor and admin request only go through admin interceptor how can I separate them in the providers in the app.module.ts
providers: [ provideHttpClient(withFetch()) ,CookieService,MessageService, provideAnimations(), {provide: HTTP_INTERCEPTORS, useClass: AdminAuthInterceptor, multi: true}, {provide:HTTP_INTERCEPTORS, useClass:UserAuthInterceptor, } ], bootstrap: [AppComponent] }) export class AppModule { }
how to provide the two interceptors separately in the app.module.ts
1