use axum::http::StatusCode; use axum_extra::extract::Query; use serde::Deserialize; #[derive(Debug, Clone, Deserialize)] pub struct WebfingerQuery { pub resource: String, #[serde(default)] pub rel: Vec, } #[axum::debug_handler] pub async fn webfinger_handler( Query(WebfingerQuery {resource, rel}): Query ) -> StatusCode { log::info!("Handling a WebFinger request!"); log::debug!("Resource is: {resource:#?}"); log::debug!("Rel is: {rel:#?}"); StatusCode::NO_CONTENT }