From b0871a6ef650e3776fd0f76799e698c20bed1fd2 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> Date: Fri, 12 May 2023 22:36:05 +0430 Subject: Change route path '/xui' to '/panel' --- web/html/xui/settings.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'web/html/xui/settings.html') 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]) -- cgit v1.2.3