Put API behind /api

This commit is contained in:
2025-01-14 12:40:30 +01:00
parent 88790bdec2
commit 3c2d45083f
3 changed files with 12 additions and 11 deletions

View File

@ -150,7 +150,7 @@
choices: this.election.choices.filter(choice => choice.trim() !== "") // Filter out empty choices
};
fetch("/election", {
fetch("/api/election", {
method: "POST",
headers: {
"Content-Type": "application/json"