Rename endpoint in JavaScript as backend call uses different endpoint

This commit is contained in:
Nanne Baars 2019-11-12 08:01:32 +01:00 committed by Nanne Baars
parent 48b604d6d9
commit 1d477bd0e8

View File

@ -76,7 +76,7 @@ function vote(title) {
} else { } else {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: 'JWT/votings/vote/' + title url: 'JWT/votings/' + title
}).then( }).then(
function () { function () {
getVotings(); getVotings();