mirror of
https://github.com/1f349/admin.1f349.com.git
synced 2024-11-12 22:51:35 +00:00
Update redirects with redirect path
This commit is contained in:
parent
3fd2fa7ac5
commit
703d171843
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user