Skip to main content

post

Macro post 

Source
macro_rules! post {
    ($path:expr, $handler:expr) => { ... };
}
Expand description

Create a POST route definition with compile-time path validation

§Example

post!("/users", controllers::user::store).name("users.store")

§Compile Error

Fails to compile if path doesn’t start with ‘/’.