fix the endpoint for the post request
This commit is contained in:
parent
3cb6f97610
commit
94daa6e4eb
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ let app = new Vue({
|
||||||
methods: {
|
methods: {
|
||||||
async start_poll(poll_data) {
|
async start_poll(poll_data) {
|
||||||
try {
|
try {
|
||||||
let r = await axios.post("/twitch/czechgamesedition/poll", poll_data);
|
let r = await axios.post("/polls/twitch/czechgamesedition/poll", poll_data);
|
||||||
alert("Poll should've been created successfully.");
|
alert("Poll should've been created successfully.");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue