removed req

v1.18.x
barisusakli 11 years ago
parent a3842d2c61
commit 824d849a52

@ -3,18 +3,18 @@
var staticController = {};
staticController['404'] = function(req, res) {
renderStatic(404, req, res);
renderStatic(404, res);
};
staticController['403'] = function(req, res) {
renderStatic(403, req, res);
renderStatic(403, res);
};
staticController['500'] = function(req, res) {
renderStatic(500, req, res);
renderStatic(500, res);
};
function renderStatic(statusCode, req, res) {
function renderStatic(statusCode, res) {
if (!res.locals.isAPI) {
res.statusCode = statusCode;
}

Loading…
Cancel
Save