mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-10 10:31:37 +00:00
22 lines
510 B
TypeScript
22 lines
510 B
TypeScript
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
import { NgModule } from '@angular/core';
|
|
import { AuthInterceptor } from 'app/core/auth/auth.interceptor';
|
|
import { AuthService } from 'app/core/auth/auth.service';
|
|
|
|
@NgModule({
|
|
imports : [
|
|
HttpClientModule,
|
|
],
|
|
providers: [
|
|
AuthService,
|
|
{
|
|
provide : HTTP_INTERCEPTORS,
|
|
useClass: AuthInterceptor,
|
|
multi : true,
|
|
},
|
|
],
|
|
})
|
|
export class AuthModule
|
|
{
|
|
}
|