From 95b16690e059664dda8d5630892f53d80b3e4dfc Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 14 Sep 2013 11:01:28 -0400 Subject: [PATCH] altering api route to use next() instead of echoing 404... --- src/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.js b/src/routes/api.js index de7b114ae3..b02a5b4616 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -115,7 +115,7 @@ var user = require('./../user.js'), return res.json(404, {}); } res.json(data); - } else res.json(404, {}); + } else next(); }); });