Spaces:
Paused
Paused
Download src/routes/metrics.ts from veltrixcode/retest: direct link, hf CLI and curl.
- Browser
- Download file 249 Bytes
-
https://huggingface.co/spaces/veltrixcode/retest/resolve/main/src/routes/metrics.ts
- Command line
-
hf download hf://spaces/veltrixcode/retest/src/routes/metrics.ts
-
curl -L -o metrics.ts https://huggingface.co/spaces/veltrixcode/retest/resolve/main/src/routes/metrics.ts
249 Bytes
| import { Hono } from "hono"; | |
| const metrics = new Hono(); | |
| metrics.get("/", async (c) => { | |
| return new Response(await c.get("metrics")?.register.metrics(), { | |
| headers: { "Content-Type": "text/plain" }, | |
| }); | |
| }); | |
| export default metrics; | |