Skip to content
Source
Sign inSign up
Open History to see the last commit

System.ts

10 lines352 Bytes

1import { 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()`
6export class SystemApi extends HttpApiGroup.make("system", { topLevel: true }).add(
7 HttpApiEndpoint.get("health", "/health", {
8 success: HttpApiSchema.NoContent
9 })
10) {}