5XW3RJKJK74VHJ2RRB64NL7PYKFLI6RMEUQCJYAU2CLITX5SGNRQC
}
pub async fn nodeinfo(data: web::Data<WebData<'_>>) -> HttpResponse {
HttpResponse::Ok()
.insert_header(("Content-Type", "application/jrd+json"))
.insert_header((
"Date",
chrono::Utc::now()
.format("%a, %d %b %Y %H:%M:%S GMT")
.to_string(),
))
.body(format!(
r#"{{
"links": [{{
"rel": "http://nodeinfo.diaspora.software/ns/schema/2.0",
"href": "{}://{}/nodeinfo/2.0"
}}]
}}"#,
data.base_proto, data.base_domain
))