sailfork / t3code-github / .repos/ effect/ ai-docs/ src/ 51_http-server/ fixtures/ api/ System.ts

import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api"

// Top level groups are added to the root of the derived HttpApiClient.
//
// `client.health()`
export class SystemApi extends HttpApiGroup.make("system", { topLevel: true }).add(
  HttpApiEndpoint.get("health", "/health", {
    success: HttpApiSchema.NoContent
  })
) {}