Separate apiEndpoint uri to config.js