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

main
ts 12 lines 428 Bytes
Raw
1 /** The app's own Effect HTTP endpoints. */
2 import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint";
3 import * as HttpApiGroup from "effect/http-api/HttpApiGroup";
4 import { Unauthorized, User } from "./auth.ts";
5
6 /** Who am I. Signed-in only. */
7 export const Me = HttpApiEndpoint.get("me", "/api/v1/me", {
8 success: User,
9 error: Unauthorized,
10 });
11
12 export class AppRoutes extends HttpApiGroup.make("app").add(Me) {}