web: Changed BASE_URL

This commit is contained in:
Alexey Safronov 2019-06-03 10:30:41 +03:00
parent e533ccd030
commit eb1a43009b

View File

@ -1,7 +1,7 @@
import axios from 'axios';
import * as fakeApi from './fakeApi';
const BASE_URL = 'http://localhost';
const BASE_URL = `${window.location.protocol}//${window.location.hostname}`;
const PORT = '5000';
const PREFIX = 'api';
const VERSION = '2.0';