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