2024-11-14 03:02:40 +00:00
|
|
|
use axum_extra::extract::Query;
|
|
|
|
use serde::Deserialize;
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, Deserialize)]
|
|
|
|
pub struct WebfingerQuery {
|
|
|
|
pub resource: String,
|
|
|
|
|
|
|
|
#[serde(default)]
|
|
|
|
pub rel: Vec<String>,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub async fn webfinger_handler(
|
|
|
|
Query(WebfingerQuery {resource, rel}): Query<WebfingerQuery>
|
|
|
|
) {
|
|
|
|
todo!()
|
2024-11-14 02:50:59 +00:00
|
|
|
}
|