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})