Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3_percent_plus
AP4_2
628e5bf20d5d6065a11709869d45895165224a97
628e5bf20d5d6065a11709869d45895165224a97
Switch branch/tag
ap4_2
server
src
middleware
asyncHandler.js
Find file
Normal view
History
Permalink
asyncHandler.js
102 Bytes
Newer
Older
Version 1.0.0
abergavenny
committed
Aug 09, 2022
1
2
3
4
export
default
(
fn
)
=>
(
req
,
res
,
next
)
=>
{
Promise
.
resolve
(
fn
(
req
,
res
,
next
))
.
catch
(
next
)
}