use decky_api::StorePluginList; use actix_web::{get, web, Responder}; use crate::storage::IStorage; #[get("/plugins")] pub async fn decky_plugins(req: actix_web::HttpRequest, data: actix_web::web::Data>) -> impl Responder { let query_string = req.query_string().to_owned(); log::debug!("Got request with uri {}", req.uri()); let plugins: StorePluginList = web::block(move || data.plugins(&query_string)).await.unwrap(); log::debug!("Got {} plugin results", plugins.len()); web::Json(plugins) }