Updating web.config to use mode based API endpoint configuration