import {NgModule} from '@angular/core'; | |
import {HTTP_INTERCEPTORS} from '@angular/common/http'; | |
@NgModule({ | |
providers: [ | |
AuthInterceptor, | |
{ | |
provide: HTTP_INTERCEPTORS, | |
useClass: AuthInterceptor, | |
multi: true, | |
} | |
], | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment