fix: add tournament update API endpoint and consolidate delete into main tournaments API

This commit is contained in:
2026-03-30 22:17:44 -07:00
parent 4d9cbc9259
commit a7d94e9fee
3 changed files with 317 additions and 109 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export function DeleteTournamentButton({ tournamentId, tournamentName, matchCoun
const handleDelete = async () => {
setIsDeleting(true)
try {
const response = await fetch(`/api/admin/tournaments/${tournamentId}`, {
const response = await fetch(`/api/tournaments/${tournamentId}`, {
method: "DELETE",
headers: {
"Content-Type": "application/json",