moved api from monorepo
This commit is contained in:
4
middleware/async.js
Normal file
4
middleware/async.js
Normal file
@@ -0,0 +1,4 @@
|
||||
const asyncHandler = fn => (req, res, next) =>
|
||||
Promise.resolve(fn(req, res, next)).catch(next)
|
||||
|
||||
export default asyncHandler
|
Reference in New Issue
Block a user