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:
parent
7f2b573531
commit
2b801167c7
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue