| 72 | |
| 73 | #[derive(serde::Serialize)] |
| 74 | struct LedResponse { |
| 75 | success: bool, |
| 76 | } |
| 77 | |
| 78 | async fn led_handler(input: picoserve::extract::Json<LedRequest>) -> impl IntoResponse { |
| 79 | crate::led::LED_STATE.store(input.0.is_on, Ordering::Relaxed); |
nothing calls this directly
no outgoing calls
no test coverage detected