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

Function config_routes

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

Source from the content-addressed store, hash-verified

2409}
2410
2411fn config_routes() -> Router<Arc<ServerState>> {
2412 Router::new()
2413 .route("/", get(get_config).patch(patch_config))
2414 .route("/providers", get(get_config_providers))
2415}
2416
2417static CONFIG_STATE: Lazy<RwLock<AppConfig>> = Lazy::new(|| RwLock::new(AppConfig::default()));
2418

Callers 1

routerFunction · 0.85

Calls 2

newFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected