Skip to content

Commit

Permalink
fix some UI routes
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Jul 8, 2024
1 parent a404817 commit a9dc8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ui/screens/SceneHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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})
Expand Down

0 comments on commit a9dc8cd

Please sign in to comment.