Download playground/src/api/examples/status.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/api/examples/status.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/playground/src/api/examples/status.ts
-
curl -L -o status.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/api/examples/status.ts
226 Bytes
| import { requestClient } from '#/api/request'; | |
| /** | |
| * 模拟任意状态码 | |
| */ | |
| async function getMockStatusApi(status: string) { | |
| return requestClient.get('/status', { params: { status } }); | |
| } | |
| export { getMockStatusApi }; | |