mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
got rid of all the res.locals.isAPI checks in all controller methods. now 1000% cleaner :shipit:
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user