feat: provide ApiInterceptor in root and useExisting in CoreModule

pull/5432/head
bnymncoskuner 5 years ago
parent c2e0b3b401
commit c6e8ac3d0e

@ -187,7 +187,7 @@ export class CoreModule {
},
{
provide: HTTP_INTERCEPTORS,
useClass: ApiInterceptor,
useExisting: ApiInterceptor,
multi: true,
},
{

@ -6,7 +6,9 @@ import { SessionState } from '../states';
import { StartLoader, StopLoader } from '../actions/loader.actions';
import { finalize } from 'rxjs/operators';
@Injectable()
@Injectable({
providedIn: 'root',
})
export class ApiInterceptor implements HttpInterceptor {
constructor(private oAuthService: OAuthService, private store: Store) {}

Loading…
Cancel
Save