Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Rahimi <alirahimi818@gmail.com>2025-01-23 23:33:47 +0300
committerGitHub <noreply@github.com>2025-01-23 23:33:47 +0300
commit04cf250a547bb64265d256e7d15af7cea5ecfa67 (patch)
tree9d4ef49eca76d9c4c2860566c075b67b4117aaa8 /web/assets/js
parentac9ab828b541839c1ccd10045ceca8f2f9bb4957 (diff)
json post base path bug fixed (#2647)
* json post base path bug fixed * added comment field to group client management
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/util/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/assets/js/util/utils.js b/web/assets/js/util/utils.js
index 28ec95c7..10825490 100644
--- a/web/assets/js/util/utils.js
+++ b/web/assets/js/util/utils.js
@@ -81,7 +81,7 @@ class HttpUtil {
},
body: JSON.stringify(data),
};
- const resp = await fetch(url, requestOptions);
+ const resp = await fetch(basePath + url.replace(/^\/+|\/+$/g, ''), requestOptions);
const response = await resp.json();
msg = this._respToMsg({data : response});