mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-16 03:42:08 +01:00
4e4c29175f
Co-authored-by: Jonas Platte <jplatte+git@posteo.de> Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
10 lines
230 B
Rust
10 lines
230 B
Rust
use axum_macros::debug_handler;
|
|
use axum::{extract::State, http::Request};
|
|
|
|
#[debug_handler(state = AppState)]
|
|
async fn handler(_: State<AppState>, _: Request<axum::body::Body>) {}
|
|
|
|
#[derive(Clone)]
|
|
struct AppState;
|
|
|
|
fn main() {}
|