From e508ac031e5d832aa95ad8ef040e82277db804d2 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sun, 3 Jun 2018 12:48:20 +0300 Subject: [PATCH] change api root --- package.json | 1 + src/actions/util.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fab86aa..a96e551 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/actions/util.js b/src/actions/util.js index d089ed0..c3bffd8 100644 --- a/src/actions/util.js +++ b/src/actions/util.js @@ -1,4 +1,4 @@ -export const API_ROOT = 'http://localhost:4000/api'; +export const API_ROOT = '/api'; export function getToken() { return localStorage.getItem('jwt');