4 lines
111 B
JavaScript
4 lines
111 B
JavaScript
module.exports = (theFunc) => (req, res, next) => {
|
|
Promise.resolve(theFunc(req, res, next)).catch(next);
|
|
};
|