From 6ae1ee33652bfe8484865c403c9811e09eb495ee Mon Sep 17 00:00:00 2001 From: Kobe Date: Wed, 4 Jun 2025 11:11:59 +0200 Subject: [PATCH] trash empty route fix --- static/js/file-grid.js | 2 +- static/js/trash.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/file-grid.js b/static/js/file-grid.js index 1ea0ddb..66cceb7 100644 --- a/static/js/file-grid.js +++ b/static/js/file-grid.js @@ -601,7 +601,7 @@ function emptyTrash() { // Create an array of promises for emptying trash in each room const emptyPromises = roomIds.map(roomId => - fetch(`/api/rooms/${roomId}/trash/empty`, { + fetch(`/api/trash/${roomId}/trash/empty`, { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/static/js/trash.js b/static/js/trash.js index 827806f..70fa30c 100644 --- a/static/js/trash.js +++ b/static/js/trash.js @@ -69,7 +69,7 @@ window.emptyTrash = function() { // Create an array of promises for emptying trash in each room const emptyPromises = roomIds.map(roomId => - fetch(`/api/rooms/${roomId}/trash/empty`, { + fetch(`/api/trash/${roomId}/trash/empty`, { method: 'POST', headers: { 'Content-Type': 'application/json',