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

Function health

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

Source from the content-addressed store, hash-verified

4225}
4226
4227async fn health() -> Json<HealthResponse> {
4228 Json(HealthResponse {
4229 status: "ok".to_string(),
4230 version: env!("CARGO_PKG_VERSION").to_string(),
4231 })
4232}
4233
4234async fn web_index() -> Html<&'static str> {
4235 Html(include_str!("../static/index.html"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected