Download apps/backend-mock/middleware/1.api.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 195 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/backend-mock/middleware/1.api.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/apps/backend-mock/middleware/1.api.ts
-
curl -L -o 1.api.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/backend-mock/middleware/1.api.ts
195 Bytes
| export default defineEventHandler((event) => { | |
| if (event.method === 'OPTIONS') { | |
| event.node.res.statusCode = 204; | |
| event.node.res.statusMessage = 'No Content.'; | |
| return 'OK'; | |
| } | |
| }); | |