use axum::extract::FromRequestParts;
use crate::{App, get_app};
impl<S> FromRequestParts<S> for App
where
S: Send + Sync,
{
type Rejection = crate::error::Error;
async fn from_request_parts(
_parts: &mut axum::http::request::Parts,
_state: &S,
) -> Result<Self, Self::Rejection> {
get_app()
}
}