mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-21 11:41:00 +00:00
main: add "links" to nodeinfo
This commit is contained in:
parent
56b174bd58
commit
5798e76d6d
1 changed files with 7 additions and 1 deletions
|
@ -275,7 +275,13 @@ async fn nodeinfo(axum::extract::State(state): axum::extract::State<State>) -> R
|
|||
},
|
||||
"metadata": {
|
||||
"rust_version": env!("CARGO_PKG_RUST_VERSION"),
|
||||
}
|
||||
},
|
||||
"links": vec![
|
||||
json!({
|
||||
"rel": "http://nodeinfo.diaspora.software/ns/schema/2.1",
|
||||
"href": format!("https://{}/.well-known/nodeinfo", state.hostname),
|
||||
}),
|
||||
],
|
||||
})).into_response()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue