funquail/front/src/config.js
2017-06-26 20:19:09 +02:00

11 lines
243 B
JavaScript

class Config {
constructor () {
this.BACKEND_URL = process.env.BACKEND_URL
if (!this.BACKEND_URL.endsWith('/')) {
this.BACKEND_URL += '/'
}
this.API_URL = this.BACKEND_URL + 'api/v1/'
}
}
export default new Config()