Last updated 8 months ago
Was this helpful?
We moved all middlewares to separate repository
(yes, if you don't want built-in)
app.use((req, res, next) => { req.appId = 'MY_APP_ID'; next(); });
function lazyEnd(end) { setTimeout(() => this.end(end), 0); } app.use((req, res, next) => { res.lazyEnd = lazyEnd; next(); });
Error which comes from Async Middleware automacilly will be handled by nanoexpress