devrig 0.30.2

Local development orchestrator
Documentation
1
2
3
4
5
6
7
8
9
10
11
use axum::extract::State;
use axum::response::IntoResponse;
use axum::Json;

use super::DashboardState;

pub async fn get_status(State(state): State<DashboardState>) -> impl IntoResponse {
    let store = state.store.read().await;
    let status = store.get_status();
    Json(status).into_response()
}