use serde_json::Value; use spike::{http::StatusCode, json::Json, response::IntoResponse, routing::post, Router, Server}; fn main() -> std::io::Result<()> { let router = Router::new().route("/json", post(echo)); Server::bind("0.0.0.0:4444").serve(router) } fn echo(body: Json) -> impl IntoResponse { (StatusCode::OK, body) }