moduld / im-box

0 stars 0 forks source link

use http Interceptor? #1

Open nosovk opened 6 years ago

nosovk commented 6 years ago

https://github.com/moduld/im-box/blob/df41e117edd7ffdd26219c82482d834e5b63ebc6/front-end/src/app/services/request.service.ts#L44

https://medium.com/@ryanchenkie_40935/angular-authentication-using-the-http-client-and-http-interceptors-2f9d1540eb8

moduld commented 6 years ago

To intercept requests need an additional service. My realisation works without it.

nosovk commented 6 years ago

It makes more lines of copy-paste then writing one service.