mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
19 lines
581 B
Rust
19 lines
581 B
Rust
use conduwuit::Result;
|
|
use ruma::{api::federation::discovery::get_server_version, assign};
|
|
|
|
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(assign!(get_server_version::v1::Response::new(), {
|
|
server: Some(assign!(get_server_version::v1::Server::new(), {
|
|
name: Some(conduwuit::version::name().into()),
|
|
version: Some(conduwuit::version::version().into()),
|
|
})),
|
|
}))
|
|
}
|