Read and change service settings in Javascript
Hi. I have a settings service defines for the URL that I'm using to do my rest calls. That is working fine. Can I change that URL in javascript prior to the mapping ? I see there is a "before send" event that can process javascript. I'm guessing I can put it in there but how do I refer to the settings ? I've tried settings.data and settings.url but the console log says settings is undefined. Whats the object I need to refer to ?