mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
change api root
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const API_ROOT = 'http://localhost:4000/api';
|
||||
export const API_ROOT = '/api';
|
||||
|
||||
export function getToken() {
|
||||
return localStorage.getItem('jwt');
|
||||
|
||||
Reference in New Issue
Block a user