Download src/common/middleware/asyncHandler.js from moustafa7/gymco: direct link, hf CLI and curl.
- Browser
- Download file 117 Bytes
-
https://huggingface.co/spaces/moustafa7/gymco/resolve/main/src/common/middleware/asyncHandler.js
- Command line
-
hf download hf://spaces/moustafa7/gymco/src/common/middleware/asyncHandler.js
-
curl -L -o asyncHandler.js https://huggingface.co/spaces/moustafa7/gymco/resolve/main/src/common/middleware/asyncHandler.js
117 Bytes
| export const asyncHandler = (handler) => (req, res, next) => | |
| Promise.resolve(handler(req, res, next)).catch(next); | |