The best way to control Claude Code, Codex and more from any computer or phone

main
ts 14 lines 489 Bytes
Raw
1 import { HttpApi, OpenApi } from "effect/http-api"
2 import { SystemApi } from "./System.ts"
3 import { UsersApiGroup } from "./Users.ts"
4
5 // Defined the root API, which combines all of the groups together. This is the
6 // API that you will serve and generate clients for. You can also annotate the
7 // API with OpenAPI metadata.
8 export class Api extends HttpApi.make("user-api")
9 .add(UsersApiGroup)
10 .add(SystemApi)
11 .annotateMerge(OpenApi.annotations({
12 title: "Acme User API"
13 }))
14 {}