Spaces:
Runtime error
Runtime error
Download utils/catchAsync.js from Beshoy-mounir/firstapp: direct link, hf CLI and curl.
- Browser
- Download file 119 Bytes
-
https://huggingface.co/spaces/Beshoy-mounir/firstapp/resolve/main/utils/catchAsync.js
- Command line
-
hf download hf://spaces/Beshoy-mounir/firstapp/utils/catchAsync.js
-
curl -L -o catchAsync.js https://huggingface.co/spaces/Beshoy-mounir/firstapp/resolve/main/utils/catchAsync.js
119 Bytes
| module.exports = (fn) => { | |
| return (req, res, next) => { | |
| Promise.resolve(fn(req, res, next)).catch(next); | |
| }; | |
| }; | |