1
|
import {NgModule} from '@angular/core';
|
2
|
import {CommonModule} from '@angular/common';
|
3
|
import {RouterModule} from '@angular/router';
|
4
|
import {HTTP_INTERCEPTORS} from '@angular/common/http';
|
5
|
import {AuthInterceptor} from './interceptors/auth.interceptor';
|
6
|
import {ApiModule} from '../shared/api/endpoints/api.module';
|
7
|
|
8
|
|
9
|
@NgModule({
|
10
|
declarations: [],
|
11
|
imports: [
|
12
|
CommonModule,
|
13
|
RouterModule,
|
14
|
ApiModule
|
15
|
],
|
16
|
providers: [
|
17
|
{provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}
|
18
|
]
|
19
|
})
|
20
|
export class AuthModule {
|
21
|
}
|