mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 23:57:49 +01:00
change api root
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
"test": "react-scripts test --env=jsdom",
|
"test": "react-scripts test --env=jsdom",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
|
"proxy": "http://localhost:4000",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-airbnb": "^16.1.0",
|
"eslint-config-airbnb": "^16.1.0",
|
||||||
"eslint-config-prettier": "^2.9.0",
|
"eslint-config-prettier": "^2.9.0",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export const API_ROOT = 'http://localhost:4000/api';
|
export const API_ROOT = '/api';
|
||||||
|
|
||||||
export function getToken() {
|
export function getToken() {
|
||||||
return localStorage.getItem('jwt');
|
return localStorage.getItem('jwt');
|
||||||
|
|||||||
Reference in New Issue
Block a user