cloudaxe-opencode/packages/opencode/src/server/instance/httpapi/index.ts

13 lines
400 B
TypeScript
Raw Normal View History

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),
)