* Error boundary wrapper for async route handlers
(fn)
| 140 | * Error boundary wrapper for async route handlers |
| 141 | */ |
| 142 | function asyncHandler(fn) { |
| 143 | return (req, res, next) => { |
| 144 | Promise.resolve(fn(req, res, next)).catch(next); |
| 145 | }; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Validate JSON body |
nothing calls this directly
no outgoing calls
no test coverage detected