400 favico request and parameterize pollId

This commit is contained in:
2025-01-01 15:26:49 +01:00
parent 363fe9ea19
commit ebea1c07fd
2 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -115,7 +115,7 @@
headers: {
"Content-Type": "application/json", // Inform the server about the data format
},
body: JSON.stringify({pollId: 1, username: submitName.value, choices: choices}), // Convert the data to JSON string
body: JSON.stringify({pollId: {{ .PollId }}, username: submitName.value, choices: choices}), // Convert the data to JSON string
})
/*
.then(response => {