| 1 | import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api" |
| 2 | |
| 3 | // Top level groups are added to the root of the derived HttpApiClient. |
| 4 | // |
| 5 | // `client.health()` |
| 6 | export class SystemApi extends HttpApiGroup.make("system", { topLevel: true }).add( |
| 7 | HttpApiEndpoint.get("health", "/health", { |
| 8 | success: HttpApiSchema.NoContent |
| 9 | }) |
| 10 | ) {} |