fix: Reverse Proxy support (#3173)
This commit is contained in:
parent
fc78f5a4e0
commit
a3ba700522
11 changed files with 33 additions and 32 deletions
|
|
@ -275,7 +275,7 @@
|
|||
}
|
||||
},
|
||||
created() {
|
||||
fetch("/api/config")
|
||||
fetch("./api/config")
|
||||
.then((r) => r.json())
|
||||
.then((r) => {
|
||||
this.config = r;
|
||||
|
|
@ -360,7 +360,7 @@
|
|||
});
|
||||
});
|
||||
|
||||
return fetch("/api/config", {
|
||||
return fetch("./api/config", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(config),
|
||||
}).then((r) => {
|
||||
|
|
@ -383,7 +383,7 @@
|
|||
setTimeout(() => {
|
||||
this.saved = this.restarted = false;
|
||||
}, 5000);
|
||||
fetch("/api/restart", {
|
||||
fetch("./api/restart", {
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue