Update app API
This commit is contained in:
+14
@@ -172,3 +172,17 @@ cython_debug/
|
|||||||
# PyPI configuration file
|
# PyPI configuration file
|
||||||
.pypirc
|
.pypirc
|
||||||
app/.env
|
app/.env
|
||||||
|
|
||||||
|
# Node.js and React
|
||||||
|
node_modules/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
.env.local
|
||||||
|
.env.development.local
|
||||||
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
.eslintcache
|
||||||
|
.DS_Store
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* All endpoints return { result, error } (BaseResponse).
|
* All endpoints return { result, error } (BaseResponse).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const BASE_URL = process.env.REACT_APP_API_URL || '';
|
const BASE_URL = process.env.REACT_APP_API_URL || '/api';
|
||||||
|
|
||||||
async function request(method, path, body = null) {
|
async function request(method, path, body = null) {
|
||||||
const options = {
|
const options = {
|
||||||
|
|||||||
Reference in New Issue
Block a user