Spaces:
Sleeping
Sleeping
Download apps/api/src/controllers/v0/liveness.ts from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/controllers/v0/liveness.ts
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/api/src/controllers/v0/liveness.ts
-
curl -L -o liveness.ts https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/controllers/v0/liveness.ts
257 Bytes
| import { Request, Response } from "express"; | |
| export async function livenessController(req: Request, res: Response) { | |
| //TODO: add checks if the application is live and healthy like checking the redis connection | |
| res.status(200).json({ status: "ok" }); | |
| } | |