Files
opencode/packages/opencode/src/server/instance/httpapi/index.ts
Kit Langton ce035ec4d3 add experimental workspace HttpApi read slice
Add a parallel experimental workspace HttpApi surface for adaptor/list/status reads using route-local Effect schemas and cover the new endpoints with a server test.
2026-04-14 20:43:38 -04:00

13 lines
418 B
TypeScript

import { lazy } from "@/util/lazy"
import { Hono } from "hono"
import { QuestionHttpApiHandler } from "./question"
import { WorkspaceHttpApiHandler } from "./workspace"
export const HttpApiRoutes = lazy(() =>
new Hono()
.all("/question", QuestionHttpApiHandler)
.all("/question/*", QuestionHttpApiHandler)
.all("/workspace", WorkspaceHttpApiHandler)
.all("/workspace/*", WorkspaceHttpApiHandler),
)