1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

migrate to /api URI prefix for backend calls

This commit is contained in:
checktheroads
2020-01-20 10:52:14 -07:00
parent 2499c7cec5
commit aef7ebe73a
4 changed files with 21 additions and 18 deletions

View File

@@ -6,8 +6,8 @@ const env = envVars.NODE_ENV;
const envUrl = envVars._HYPERGLASS_URL_;
const devProxy = {
"/config": { target: envUrl + "config", pathRewrite: { "^/config": "" } },
"/query": { target: envUrl + "query", pathRewrite: { "^/query": "" } },
"/api/config": { target: envUrl + "config", pathRewrite: { "^/api/config": "" } },
"/api/query": { target: envUrl + "query", pathRewrite: { "^/api/query": "" } },
"/images": { target: envUrl + "images", pathRewrite: { "^/images": "" } }
};