diff --git a/book.js b/book.js index 3fbc040..0462650 100644 --- a/book.js +++ b/book.js @@ -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() { diff --git a/index.js b/index.js index 10c9336..77b3a2e 100644 --- a/index.js +++ b/index.js @@ -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); } },