Files
pawol.nu/lib/utils/w.js
T

12 lines
195 B
JavaScript
Raw Normal View History

2022-02-19 21:43:12 +04:00
function w(handler) {
return async (request, response, next) => {
try {
await handler(request, response, next)
} catch (error) {
next(error)
}
}
}
module.exports = w