if the Url is localhost/8085

Then all api call will be made to localhost:9764/API

if the url is <http://10.1xx.xx.xx:8085/Amp>
Then all api call using 10.1xx.xx.xx:9764/api...

Is This possible in React js?