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.
This commit is contained in:
Kit Langton
2026-04-13 23:11:09 -04:00
parent 87b2a9d749
commit ce035ec4d3
3 changed files with 167 additions and 1 deletions

View File

@@ -1,7 +1,12 @@
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),
new Hono()
.all("/question", QuestionHttpApiHandler)
.all("/question/*", QuestionHttpApiHandler)
.all("/workspace", WorkspaceHttpApiHandler)
.all("/workspace/*", WorkspaceHttpApiHandler),
)