diff --git a/db/matterwiki.sqlite b/db/matterwiki.sqlite index 730b851..76f5920 100644 Binary files a/db/matterwiki.sqlite and b/db/matterwiki.sqlite differ diff --git a/index.js b/index.js index 6c1521b..b0b4fc3 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ app.get('/articles',function(req,res){ the error key in the returning object is a boolen which is false if there is no error and true otherwise */ Articles.forge() - .fetch() + .fetchAll() .then(function (collection) { res.json({error: false, data: collection.toJSON()}); })