From da5de0257fc9c9d8c4c7f589d84ced2ef19b9f04 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 4 Apr 2020 21:01:18 +0200 Subject: stub sdk. add keywords fix. stub users --- bucky/app/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bucky') diff --git a/bucky/app/api.js b/bucky/app/api.js index a6aa83f..45dde3f 100644 --- a/bucky/app/api.js +++ b/bucky/app/api.js @@ -38,7 +38,9 @@ function route (app){ middleware.ensureAuthenticated, bucky.ensureUserlist, function(req, res) { - res.json(res.users) + res.json({ + users: res.users + }) }) app.get("/api/profile/:username", middleware.ensureAuthenticated, -- cgit v1.2.3-70-g09d2