change api root

This commit is contained in:
2018-06-03 12:48:20 +03:00
parent d2497e064c
commit e508ac031e
2 changed files with 2 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
"proxy": "http://localhost:4000",
"devDependencies": {
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",

View File

@@ -1,4 +1,4 @@
export const API_ROOT = 'http://localhost:4000/api';
export const API_ROOT = '/api';
export function getToken() {
return localStorage.getItem('jwt');