Files
continuwuity/src/api/server/version.rs
T
Jason Volk 9b658d86b2 Rename crates.
Signed-off-by: Jason Volk <jason@zemos.net>
2025-04-22 04:37:49 +00:00

19 lines
546 B
Rust

use ruma::api::federation::discovery::get_server_version;
use tuwunel_core::Result;
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(tuwunel_core::version::name().into()),
version: Some(tuwunel_core::version::version().into()),
}),
})
}