Macros
Macro | Description |
---|---|
handler | Extended Handler with Extractors |
Example
use ;
use handler;
async
async
License
This project is licensed under the MIT license.
Macro | Description |
---|---|
handler | Extended Handler with Extractors |
use viz::{IntoResponse, Result, types::{Params}};
use viz_macros::handler;
#[handler]
fn about() -> impl IntoResponse {
}
#[handler]
async fn index() -> impl IntoResponse {
()
}
#[handler]
async fn get_user(Params(name): Params<String>) -> Result<impl IntoResponse> {
Ok(name)
}
This project is licensed under the MIT license.