trash empty route fix

This commit is contained in:
2025-06-04 11:11:59 +02:00
parent add00d488c
commit 6ae1ee3365
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -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',