ntex 4.9.2

Framework for composable network services
Documentation
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));
}