mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
altering api route to use next() instead of echoing 404...
This commit is contained in:
@@ -115,7 +115,7 @@ var user = require('./../user.js'),
|
||||
return res.json(404, {});
|
||||
}
|
||||
res.json(data);
|
||||
} else res.json(404, {});
|
||||
} else next();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user