Spaces:
Sleeping
Sleeping
Download backend/src/utils/asyncHandler.ts from simhaa-hat/generated-bill: direct link, hf CLI and curl.
- Browser
- Download file 133 Bytes
-
https://huggingface.co/spaces/simhaa-hat/generated-bill/resolve/main/backend/src/utils/asyncHandler.ts
- Command line
-
hf download hf://spaces/simhaa-hat/generated-bill/backend/src/utils/asyncHandler.ts
-
curl -L -o asyncHandler.ts https://huggingface.co/spaces/simhaa-hat/generated-bill/resolve/main/backend/src/utils/asyncHandler.ts
133 Bytes
| export const asyncHandler = (fn: any) => (req: any, res: any, next: any) => { | |
| Promise.resolve(fn(req, res, next)).catch(next); | |
| }; | |