Function
get_config
(State(_state): State<Arc<ServerState>>)
Source from the content-addressed store, hash-verified
| 2417 | static CONFIG_STATE: Lazy<RwLock<AppConfig>> = Lazy::new(|| RwLock::new(AppConfig::default())); |
| 2418 | |
| 2419 | async fn get_config(State(_state): State<Arc<ServerState>>) -> Result<Json<AppConfig>> { |
| 2420 | let config = CONFIG_STATE.read().await; |
| 2421 | Ok(Json(config.clone())) |
| 2422 | } |
| 2423 | |
| 2424 | async fn patch_config( |
| 2425 | State(state): State<Arc<ServerState>>, |
Callers
nothing calls this directly
Tested by
no test coverage detected