tirocinio-canali-steffo-acrate/acrate-webfinger/src/route.rs

17 lines
301 B
Rust
Raw Normal View History

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!()
}