1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Set backend endpoint from ENV

This commit is contained in:
Ricardo Hernandez-Montoya 2017-04-27 16:44:16 +02:00
parent 7f2b573531
commit 2b801167c7

View file

@ -9,8 +9,8 @@
import RestAPI from '../api/rest-api';
import AppDispatcher from '../app-dispatcher';
const API_URL = 'http://localhost:4000/api/v1';
const backend = process.env.REACT_APP_BACKEND || 'ghvillas.westeurope.cloudapp.azure.com:4000'
const API_URL = 'http://' + backend + '/api/v1';
class RestDataManager {
constructor(type, url, keyFilter) {