Declarative macro magic from Axum in Rust
Take a quick glance at the code snippet below. Without thinking too hard, is get a function or a method? How about post?
Router::new()
.route(“/one”, get(get_handler).post(post_handler))
.route(“/two”, post(post_handler).get(get_handler))
Wh...
fromscratchcode.hashnode.dev9 min read