Last active
July 29, 2021 10:26
-
-
Save teomanofficial/688b4103f4d24c3de785f0297bd3229d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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