use std::collections::HashMap; use actix_web::{get, web, Responder}; use crate::storage::IStorage; #[get("/stats")] pub async fn decky_statistics(data: actix_web::web::Data>) -> impl Responder { let plugins: HashMap = data.get_statistics(); web::Json(plugins) }