(input: picoserve::extract::Json<LedRequest>)
| 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); |
| 80 | |
| 81 | picoserve::response::Json(LedResponse { success: true }) |
| 82 | } |
nothing calls this directly
no outgoing calls
no test coverage detected