2022-08-18 11:41:14 +02:00
|
|
|
use axum_macros::debug_handler;
|
2023-03-12 16:37:32 +01:00
|
|
|
use axum::{extract::State, http::Request};
|
2022-08-18 11:41:14 +02:00
|
|
|
|
2023-03-12 16:37:32 +01:00
|
|
|
#[debug_handler(state = AppState)]
|
|
|
|
|
async fn handler(_: State<AppState>, _: Request<axum::body::Body>) {}
|
2022-08-18 11:41:14 +02:00
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
|
struct AppState;
|
|
|
|
|
|
|
|
|
|
fn main() {}
|