cartodb/lib/assets/javascripts/new-dashboard/plugins/interceptor.js

7 lines
353 B
JavaScript
Raw Normal View History

2020-06-15 10:58:47 +08:00
import ForbiddenAction from 'builder/data/backbone/network-interceptors/interceptors/forbidden-403';
import NetworkResponseInterceptor from 'builder/data/backbone/network-interceptors/interceptor';
NetworkResponseInterceptor.addURLPattern('api/v');
NetworkResponseInterceptor.addErrorInterceptor(ForbiddenAction());
NetworkResponseInterceptor.start();