You currently have boiler plate code spread across some services= code that is necessary and also repetitive. E.g. getters/setters. The idea with interceptors is quite simple. You intercept in this case each REST call of users.js and on error send a proper error message and a proper HTTP code.
@echo75 Here's a good article on the topic: How to implement Interceptors in JS
You currently have boiler plate code spread across some services= code that is necessary and also repetitive. E.g. getters/setters. The idea with interceptors is quite simple. You intercept in this case each REST call of users.js and on error send a proper error message and a proper HTTP code.
WatchList.vue