cartodb-4.42/lib/assets/javascripts/new-dashboard/plugins/interceptor.js
2024-04-06 05:25:13 +00:00

7 lines
353 B
JavaScript

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();