c680f5b4
Administrator
first commit
|
1
2
3
4
5
6
7
8
9
10
11
|
import { Injectable } from '@angular/core';
import { RequestOptionsArgs } from '@angular/http';
import { IHttpInterceptor } from '@covalent/http';
@Injectable()
export class RequestInterceptor implements IHttpInterceptor {
onRequest(requestOptions: RequestOptionsArgs): RequestOptionsArgs {
// you add headers or do something before a request here.
return requestOptions;
}
}
|