From 6090d43b7c035b6d63ec10a1da6359acbdc4d0ce Mon Sep 17 00:00:00 2001 From: Meutel Date: Sun, 1 Jan 2017 17:05:17 +0100 Subject: [PATCH] Revert "Fix json query path" This reverts commit 195da2155aab3bb4571975c49c5d8497db4f0072. --- book.js | 2 +- index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book.js b/book.js index 0462650..3fbc040 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 77b3a2e..10c9336 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); } },