Prettier res.status().format()

(due tabs — my editor has tab-spacing set to 2 so I don’t notice when
stuff like this looks crappy)
This commit is contained in:
Mikael Korpela
2015-05-18 19:25:02 +03:00
parent fd170261ec
commit 7070796c53

View File

@@ -24,9 +24,7 @@ exports.renderServerError = function(req, res) {
*/
exports.renderNotFound = function(req, res) {
res
.status(404)
.format({
res.status(404).format({
'text/html': function(){
res.render('modules/core/server/views/404', {
url: req.originalUrl