1 2 3 4 5 6 7 8 9
use ntex::web; async fn index(_: u32) -> &'static str { "Hello" } fn main() { let _ = web::App::default().route("/", web::get().to_with_state(index)); }