got rid of all the res.locals.isAPI checks in all controller methods. now 1000% cleaner :shipit:

This commit is contained in:
psychobunny
2014-03-09 20:05:14 -04:00
parent faf3de7e27
commit a99be8e7be
7 changed files with 74 additions and 283 deletions

View File

@@ -168,11 +168,7 @@ topicsController.get = function(req, res, next) {
});
}
if (res.locals.isAPI) {
res.json(data);
} else {
res.render('topic', data);
}
res.render('topic', data);
});
};