// create a function to intercept each request and modify the URL
var RequestIntercept = function() {};
RequestIntercept.prototype.apply = function(obj, authorizations) {
console.log("modify your URL here");
obj.url = obj.url; // <= this is mutable
return true;
};
// when loading swagger ui, add the interceptor
window.authorizations.add("intercept", new RequestIntercept());