}
pub async fn nodeinfo() -> HttpResponse {
HttpResponse::Ok()
.insert_header((
"Content-Type",
"application/json;profile=\"http://nodeinfo.diaspora.software/ns/schema/2.0#\"",
))
.insert_header((
"Date",
chrono::Utc::now()
.format("%a, %d %b %Y %H:%M:%S GMT")
.to_string(),
))
.body(
r#"{
"version": 2.0,
"software": {
"name": "freeorion-test-web",
"version": "0.0.1"
},
"protocols": ["activitypub"],
"services": {"inbound": [], "outbound": []},
"openRegistrations": false,
"usage": {
"users": 0,
"localPosts": 0
}
}"#,
)