()
| 2409 | } |
| 2410 | |
| 2411 | fn 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 | |
| 2417 | static CONFIG_STATE: Lazy<RwLock<AppConfig>> = Lazy::new(|| RwLock::new(AppConfig::default())); |
| 2418 |