Skip to content

Commit

Permalink
fix: use relative path for all API calls (#872)
Browse files Browse the repository at this point in the history
Fixes #870
  • Loading branch information
fmartingr committed Apr 7, 2024
1 parent 48db805 commit ceb392d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/view/assets/js/page/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit ceb392d

Please sign in to comment.