GIF89a
const AsyncHandler = (fun) => { return (req, res, next) => { Promise.resolve(fun(req, res, next)).catch(next) } } export default AsyncHandler