axum-controller 0.4.1

Helper macro's for better readability of axum handlers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use axum_controller::controller;
use axum_typed_routing::route;
use axum_typed_routing::TypedRouter;

struct ExampleController;

#[controller(path = "/a", path = "/b")]
impl ExampleController {
    #[route(GET "/test")]
    async fn test_handler_fn() -> String {
        todo!()
    }
}

fn main() {}