axum_controller/lib.rs
1#![doc = include_str!("../README.md")]
2//!
3//! ## Basic route macro usage
4//! See the docs of [`axum_typed_routing`] for details on the route macro.
5//! For convenience we re-export the route macro & TypedRouter for you
6//! so that all you need to use on your side is `use axum_controller::*`
7//!
8//! ## Controller macro usage
9//!
10//! This crate also offers a controller() attribute macro.
11//! use it like this:
12//!
13//! ```
14#![doc = include_str!("../examples/controller.rs")]
15//! ```
16
17pub use axum_controller_macros::controller;
18pub use axum_typed_routing::route;
19pub use axum_typed_routing::TypedRouter;