use the version function for s2s API too

This way the extra version information can appear there as well. Mainly
useful for showing off :P
This commit is contained in:
Charles Hall 2024-05-01 00:30:40 -07:00
parent a25f2ec950
commit 509b70bd82
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 16 additions and 16 deletions

View file

@ -515,7 +515,7 @@ pub(crate) async fn get_server_version_route(
Ok(get_server_version::v1::Response {
server: Some(get_server_version::v1::Server {
name: Some(env!("CARGO_PKG_NAME").to_owned()),
version: Some(env!("CARGO_PKG_VERSION").to_owned()),
version: Some(crate::version()),
}),
})
}