Skip to content

Instantly share code, notes, and snippets.

@teomanofficial
Last active July 29, 2021 10:26
Show Gist options
  • Save teomanofficial/688b4103f4d24c3de785f0297bd3229d to your computer and use it in GitHub Desktop.
Save teomanofficial/688b4103f4d24c3de785f0297bd3229d to your computer and use it in GitHub Desktop.
// HTTP_INTERCEPTORS injection token'ini import etmeyi unutmayın!
import { HTTP_INTERCEPTORS } from '@angular/common/http';
@NgModule({
declarations: [
AppComponent,
],
imports: [
CoreModule,
AppRoutingModule
],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: AppendJwtToken, multi: true }
],
bootstrap: [AppComponent],
})
export class AppModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment