use axum::{ http::StatusCode, routing::{get, post}, Json, Router, }; use serde::{Deserialize, Serialize}; #[tokio::main(flavor = "current_thread")] async fn main() { tracing_subscriber::fmt::init(); let app = Router::new().route("/", get(root)); let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); axum::serve(listener, app).await.unwrap(); } async fn root() -> &'static str { "Hello, World!" }