Update redirects with redirect path

This commit is contained in:
Melon 2023-10-29 13:26:45 +00:00
parent 3fd2fa7ac5
commit 703d171843
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -118,7 +118,7 @@
})
.sort((a, _) => (a.type === "del" ? -1 : a.type === "ins" ? 1 : 0))
.map(x => {
x.p = fetch(apiViolet + "/route", {
x.p = fetch(apiViolet + "/redirect", {
method: x.type == "del" ? "DELETE" : "POST",
headers: {Authorization: getBearer()},
body: JSON.stringify(x.type == "del" ? {src: (x.v.server as Redirect).src} : x.v.client),