From 703d1718435b059f58b0e3606b6bb62ac9d841c3 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sun, 29 Oct 2023 13:26:45 +0000 Subject: [PATCH] Update redirects with redirect path --- src/views/VioletView.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/VioletView.svelte b/src/views/VioletView.svelte index 85ba621..6442d5c 100644 --- a/src/views/VioletView.svelte +++ b/src/views/VioletView.svelte @@ -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),