mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-27 00:05:26 +00:00
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.
13 lines
418 B
TypeScript
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),
|
|
)
|