Browse Source

fix wrong api call #1286

Alireza Ahmadi 1 year ago
parent
commit
3b98550816
1 changed files with 4 additions and 4 deletions
  1. 4 4
      web/html/xui/inbounds.html

+ 4 - 4
web/html/xui/inbounds.html

@@ -954,10 +954,10 @@
                         class: themeSwitcher.currentTheme,
                         okText: '{{ i18n "delete"}}',
                         cancelText: '{{ i18n "cancel"}}',
-                        onOk: () => this.submit(`/xui/inbound/${dbInboundId}/delClient/${clientId}`),
+                        onOk: () => this.submit(`/panel/inbound/${dbInboundId}/delClient/${clientId}`),
                     });
                 } else {
-                    this.submit(`/xui/inbound/${dbInboundId}/delClient/${clientId}`);
+                    this.submit(`/panel/inbound/${dbInboundId}/delClient/${clientId}`);
                 }
             },
             getClients(protocol, clientSettings) {
@@ -1043,10 +1043,10 @@
                         class: themeSwitcher.currentTheme,
                         okText: '{{ i18n "reset"}}',
                         cancelText: '{{ i18n "cancel"}}',
-                        onOk: () => this.submit('/xui/inbound/' + dbInboundId + '/resetClientTraffic/' + client.email),
+                        onOk: () => this.submit('/panel/inbound/' + dbInboundId + '/resetClientTraffic/' + client.email),
                     })
                 } else {
-                    this.submit('/xui/inbound/' + dbInboundId + '/resetClientTraffic/' + client.email);
+                    this.submit('/panel/inbound/' + dbInboundId + '/resetClientTraffic/' + client.email);
                 }
             },
             resetAllTraffic() {