Revert "Fix json query path"

This reverts commit 195da2155a.
This commit is contained in:
Meutel 2017-01-01 17:05:17 +01:00
parent 195da2155a
commit 6090d43b7c
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ var app = new Vue({
},
loadBook: function() {
if (this.urlParams.id)
this.sendQuery('/cgi-bin/bouquins/books/' + this.urlParams.id, this.stdError, this.bookSuccess);
this.sendQuery('cgi-bin/bouquins/books/' + this.urlParams.id, this.stdError, this.bookSuccess);
}
},
created: function() {

View File

@ -39,7 +39,7 @@ var app = new Vue({
this.booksCount = resp.count;
},
loadIndex: function() {
this.sendQuery('/cgi-bin/bouquins/index', this.stdError, this.indexSuccess);
this.sendQuery('cgi-bin/bouquins/index', this.stdError, this.indexSuccess);
},
booksSuccess: function(resp) {
this.books = resp;
@ -55,7 +55,7 @@ var app = new Vue({
this.loadBooks();
},
loadBooks: function() {
this.sendQuery('/cgi-bin/bouquins/books?page=' + this.page + '&perpage=' + this.perpage,
this.sendQuery('cgi-bin/bouquins/books?page=' + this.page + '&perpage=' + this.perpage,
this.stdError, this.booksSuccess);
}
},