cloudaxe-opencode/packages/opencode/src/server/instance/httpapi/index.ts
Kit Langton 370690c1f8 add experimental config providers HttpApi slice
Add a parallel experimental config providers HttpApi endpoint, keep the schema local to the slice for now, and normalize the provider payload through JSON serialization so the draft route returns a stable JSON shape.
2026-04-14 20:43:38 -04:00

12 lines
400 B
TypeScript

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