diff --git a/internal/view/assets/js/page/setting.js b/internal/view/assets/js/page/setting.js index 5e9ab9dc..35cc0b17 100644 --- a/internal/view/assets/js/page/setting.js +++ b/internal/view/assets/js/page/setting.js @@ -107,7 +107,7 @@ export default { this.$emit("setting-changed", options); //request - fetch(new URL("/api/v1/auth/account", document.baseURI), { + fetch(new URL("api/v1/auth/account", document.baseURI), { method: "PATCH", body: JSON.stringify({ config: this.appOptions, @@ -337,7 +337,7 @@ export default { secondText: "No", mainClick: () => { this.dialog.loading = true; - fetch(`/api/accounts`, { + fetch(`api/accounts`, { method: "delete", body: JSON.stringify([account.username]), headers: {