mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 09:16:36 +00:00
add experimental question HttpApi slice (#22357)
This commit is contained in:
7
packages/opencode/src/server/instance/httpapi/index.ts
Normal file
7
packages/opencode/src/server/instance/httpapi/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { lazy } from "@/util/lazy"
|
||||
import { Hono } from "hono"
|
||||
import { QuestionHttpApiHandler } from "./question"
|
||||
|
||||
export const HttpApiRoutes = lazy(() =>
|
||||
new Hono().all("/question", QuestionHttpApiHandler).all("/question/*", QuestionHttpApiHandler),
|
||||
)
|
||||
Reference in New Issue
Block a user