mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-26 03:24:03 +00:00
532dfd004d
Signed-off-by: Jason Volk <jason@zemos.net>
19 lines
537 B
Rust
19 lines
537 B
Rust
use conduwuit::Result;
|
|
use ruma::api::federation::discovery::get_server_version;
|
|
|
|
use crate::Ruma;
|
|
|
|
/// # `GET /_matrix/federation/v1/version`
|
|
///
|
|
/// Get version information on this server.
|
|
pub(crate) async fn get_server_version_route(
|
|
_body: Ruma<get_server_version::v1::Request>,
|
|
) -> Result<get_server_version::v1::Response> {
|
|
Ok(get_server_version::v1::Response {
|
|
server: Some(get_server_version::v1::Server {
|
|
name: Some(conduwuit::version::name().into()),
|
|
version: Some(conduwuit::version::version().into()),
|
|
}),
|
|
})
|
|
}
|