Fix route conflict: move delete endpoint to /api/sermons/delete/[id] to avoid conflict with [slug].get

This commit is contained in:
2025-10-01 22:33:39 -04:00
parent bd0539118c
commit af72305c80
2 changed files with 44 additions and 1 deletions

View File

@@ -269,7 +269,7 @@ async function handleDelete() {
deleting.value = true
try {
await $fetch(`/api/sermons/${selectedSermonId.value}`, {
await $fetch(`/api/sermons/delete/${selectedSermonId.value}`, {
method: 'DELETE'
})