Wolkendama-API
/
utils
/
catchAsync.js
catchAsync.js
Raw
module
.
exports
=
(
fn
)
=>
{
return
(
req
,
res
,
next
)
=>
{
fn
(
req
,
res
,
next
)
.
catch
(
next
)
;
}
;
}
;