diff options
| author | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-12 21:06:05 +0300 |
|---|---|---|
| committer | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-12 21:15:32 +0300 |
| commit | b0871a6ef650e3776fd0f76799e698c20bed1fd2 (patch) | |
| tree | cc81b1f5033ba3b853019a0ca69dcb40207b45c3 /web/html/xui/settings.html | |
| parent | 288374d5fa6eedb3131326e60437c0acf058d32f (diff) | |
Change route path '/xui' to '/panel'
Diffstat (limited to 'web/html/xui/settings.html')
| -rw-r--r-- | web/html/xui/settings.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 94364eb7..9dec0e0c 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -318,7 +318,7 @@ }, async getAllSetting() { this.loading(true); - const msg = await HttpUtil.post("/xui/setting/all"); + const msg = await HttpUtil.post("/panel/setting/all"); this.loading(false); if (msg.success) { this.oldAllSetting = new AllSetting(msg.obj); @@ -329,7 +329,7 @@ }, async updateAllSetting() { this.loading(true); - const msg = await HttpUtil.post("/xui/setting/update", this.allSetting); + const msg = await HttpUtil.post("/panel/setting/update", this.allSetting); this.loading(false); if (msg.success) { await this.getAllSetting(); @@ -337,7 +337,7 @@ }, async updateUser() { this.loading(true); - const msg = await HttpUtil.post("/xui/setting/updateUser", this.user); + const msg = await HttpUtil.post("/panel/setting/updateUser", this.user); this.loading(false); if (msg.success) { this.user = {}; @@ -355,7 +355,7 @@ }); }); this.loading(true); - const msg = await HttpUtil.post("/xui/setting/restartPanel"); + const msg = await HttpUtil.post("/panel/setting/restartPanel"); this.loading(false); if (msg.success) { this.loading(true); @@ -364,7 +364,7 @@ } }, async getUserSecret() { - const user_msg = await HttpUtil.post("/xui/setting/getUserSecret", this.user); + const user_msg = await HttpUtil.post("/panel/setting/getUserSecret", this.user); if (user_msg.success) { this.user = user_msg.obj; } @@ -372,7 +372,7 @@ }, async updateSecret() { this.loading(true); - const msg = await HttpUtil.post("/xui/setting/updateUserSecret", this.user); + const msg = await HttpUtil.post("/panel/setting/updateUserSecret", this.user); if (msg.success) { this.user = msg.obj; window.location.replace(basePath + "logout") @@ -399,7 +399,7 @@ }, async resetXrayConfigToDefault() { this.loading(true); - const msg = await HttpUtil.get("/xui/setting/getDefaultJsonConfig"); + const msg = await HttpUtil.get("/panel/setting/getDefaultJsonConfig"); this.loading(false); if (msg.success) { this.templateSettings = JSON.parse(JSON.stringify(msg.obj, null, 2)); @@ -419,7 +419,7 @@ ]; this.loading(true); domainsToCheck.forEach(async (dd) => { - const msg = await HttpUtil.get(`/xui/setting/searchDatafiles?query=${dd.query}`); + const msg = await HttpUtil.get(`/panel/setting/searchDatafiles?query=${dd.query}`); if (msg.success && msg.obj) { [dd.key] = dd.data; console.log([dd.key]) |
