MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_doc

Function get_doc

crates/opencode-server/src/routes.rs:4253–4262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4251}
4252
4253async fn get_doc() -> Json<DocResponse> {
4254 Json(DocResponse {
4255 info: DocInfo {
4256 title: "opencode".to_string(),
4257 version: env!("CARGO_PKG_VERSION").to_string(),
4258 description: "opencode api".to_string(),
4259 openapi: "3.1.1".to_string(),
4260 },
4261 })
4262}
4263
4264// --- /log endpoint: accepts a log entry and writes it via tracing ---
4265

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected