From a9dc8cddca21a4985a14822546a88bf4f24ecfc7 Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Mon, 8 Jul 2024 11:20:12 +0200 Subject: [PATCH] fix some UI routes --- source/ui/screens/SceneHistory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ui/screens/SceneHistory.ts b/source/ui/screens/SceneHistory.ts index b7c42b95..43cd3ce0 100644 --- a/source/ui/screens/SceneHistory.ts +++ b/source/ui/screens/SceneHistory.ts @@ -320,7 +320,7 @@ class SceneVersion{ console.log("Restore : ", i); Notification.show(`Restoring to ${i.name}#${i.generation}...`, "info"); this.versions = null; - fetch(`/history/${encodeURIComponent(this.name)}/`, { + fetch(`/history/${encodeURIComponent(this.name)}`, { method: "POST", headers: {"Content-Type": "application/json"}, body: JSON.stringify(i) @@ -334,7 +334,7 @@ class SceneVersion{ async grant(username :string, access :AccessRights["access"]){ if(access == "none" && username != "default") access = null; - let p = fetch(`/auth/access${encodeURIComponent(this.name)}`, { + let p = fetch(`/auth/access/${encodeURIComponent(this.name)}`, { method: "PATCH", headers:{"Content-Type":"application/json"}, body: JSON.stringify({username:username, access:access})