Skip to content

Commit 50b18bb

Browse files
committed
fixed #14 removed abpHttp and implemented abpHttpInterceptor
1 parent 30d29b5 commit 50b18bb

File tree

7 files changed

+2203
-354
lines changed

7 files changed

+2203
-354
lines changed

README.MD

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ To generate all `*.js`, `*.js.map` and `*.d.ts` files:
1515
$ npm run build
1616
```
1717

18+
## AbpHttpInterceptor
19+
20+
In order to use AbpHttpInterceptor in your module, first import it into your module like below;
21+
22+
```ts
23+
import { AbpHttpInterceptor } from '@abp/abpHttpInterceptor';
24+
import { HTTP_INTERCEPTORS } from '@angular/common/http';
25+
```
26+
27+
then, add it to your module providers like below;
28+
29+
```ts
30+
providers: [
31+
{ provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true }
32+
///other providers
33+
]
34+
```
35+
1836
## License
1937

2038
MIT

0 commit comments

Comments
 (0)