Skip to content

axum routing Router

let routes = Router::new().route(
    "/hello", // path
    axum::routhing::get(|| async { // method router
        Html("hello world")
    }),
);

- get can handle router handler as GET method#