Put API behind /api
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user