Download packages/protocol/src/groups/health.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/protocol/src/groups/health.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/protocol/src/groups/health.ts
-
curl -L -o health.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/protocol/src/groups/health.ts
511 Bytes
| import { Schema } from "effect" | |
| import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi" | |
| export const HealthGroup = HttpApiGroup.make("server.health").add( | |
| HttpApiEndpoint.get("health.get", "/api/health", { | |
| success: Schema.Struct({ healthy: Schema.Literal(true) }), | |
| }).annotateMerge( | |
| OpenApi.annotations({ | |
| identifier: "v2.health.get", | |
| summary: "Check server health", | |
| description: "Check whether the API server is ready to accept requests.", | |
| }), | |
| ), | |
| ) | |