fixed routing issue

This commit is contained in:
ari committed 2022-06-04 17:54:32 -04:00
1 parent e72c83b980
commit 26c81effd6
4 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import { makeRemoteAPI } from "./base";
import { useAPIService } from './core';
import { useMockAPI } from "./mock";
const locationPrefixWeb = window.location.pathname.match(/(.+)\/web/i);
const locationPrefixWeb = window.location.pathname.match(/(\/.+\/)web/i);
const baseURL = new URL(
process.env.NODE_ENV === 'development' ?
"http://localhost:8000" :