use axum::response::Json; use serde::Serialize; #[derive(Serialize)] pub struct Problem { title: String, description: String, } pub async fn get_problems() -> Json> { let problem = Problem { title: "test problem".into(), description: "the description of a test problem".into(), }; Json(vec![problem]) }