I have a few route like this:
app.post('/user/me', c.auth, c.striper.make, c.user.edit, c.user.requestDriver, render);
app.post('/user/:id', c.auth, c.targetUser, c.user.makeDriver, c.user.makeAdmin, render);
res, req and next();
render(res, req, next)
I suggest to call
next(new Error(smth-data)); and render in Error-middleware with 4 params. Or you want special render for each route?