The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import * as HttpApi from "effect/http-api/HttpApi"; |
| 2 | import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint"; |
| 3 | import * as HttpApiGroup from "effect/http-api/HttpApiGroup"; |
| 4 | import * as Schema from "effect/Schema"; |
| 5 | |
| 6 | export class Greeting extends Schema.Class<Greeting>("Greeting")({ |
| 7 | message: Schema.String, |
| 8 | }) {} |
| 9 | |
| 10 | export const hello = HttpApiEndpoint.get("hello", "/", { |
| 11 | success: Greeting, |
| 12 | }); |
| 13 | |
| 14 | export class HelloGroup extends HttpApiGroup.make("Hello").add(hello) {} |
| 15 | |
| 16 | export class BackendApi extends HttpApi.make("BackendApi").add(HelloGroup) {} |