400 favico request and parameterize pollId
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user