mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-15 19:25:54 +01:00
10 lines
215 B
Rust
10 lines
215 B
Rust
use axum::{extract::Request, extract::State};
|
|
use axum_macros::debug_handler;
|
|
|
|
#[debug_handler(state = AppState)]
|
|
async fn handler(_: State<AppState>, _: Request) {}
|
|
|
|
#[derive(Clone)]
|
|
struct AppState;
|
|
|
|
fn main() {}
|