make the api url configurable in the web gateway