Open nosovk opened 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
To intercept requests need an additional service. My realisation works without it.
It makes more lines of copy-paste then writing one service.
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