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

Function global_routes

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

Source from the content-addressed store, hash-verified

3951}
3952
3953fn global_routes() -> Router<Arc<ServerState>> {
3954 Router::new()
3955 .route("/health", get(global_health))
3956 .route("/event", get(global_event_stream))
3957 .route("/config", get(get_global_config))
3958 .route("/dispose", post(dispose_all))
3959}
3960
3961#[derive(Debug, Serialize)]
3962pub struct GlobalHealthResponse {

Callers 1

routerFunction · 0.85

Calls 2

newFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected