added AuthInterceptor for sending api key in the header on every request to api

This commit is contained in:
2024-04-28 14:03:41 +05:30
parent ad3df7c6b5
commit 1d53333667
8 changed files with 64 additions and 7 deletions
+7
View File
@@ -0,0 +1,7 @@
import { HTTP_INTERCEPTORS } from "@angular/common/http";
import { AuthInterceptor } from "./auth.interceptor";
export const httpInterceptorProviders = [
{provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}
]