fix: add tournament update API endpoint and consolidate delete into main tournaments API
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user