refactor: Remove /_conduwuit/ routes

This commit is contained in:
Ginger committed 2026-07-07 11:33:47 -04:00
1 parent 6619e6a20a
commit 431fb7330e
2 files changed
+6 -9

No files matched your search

+4 -4
View File
@@ -29,23 +29,23 @@ pub(crate) async fn get_supported_versions_route(
))
}
/// # `GET /_conduwuit/server_version`
/// # `GET /_continuwuity/server_version`
///
/// Conduwuit-specific API to get the server version, results akin to
/// `/_matrix/federation/v1/version`
pub(crate) async fn conduwuit_server_version() -> Result<impl IntoResponse> {
pub(crate) async fn continuwuity_server_version() -> Result<impl IntoResponse> {
Ok(Json(serde_json::json!({
"name": conduwuit::BRANDING,
"version": conduwuit::version(),
})))
}
/// # `GET /_conduwuit/local_user_count`
/// # `GET /_continuwuity/local_user_count`
///
/// conduwuit-specific API to return the amount of users registered on this
/// homeserver. Endpoint is disabled if federation is disabled for privacy. This
/// only includes active users (not deactivated, etc)
pub(crate) async fn conduwuit_local_user_count(
pub(crate) async fn continuwuity_local_user_count(
State(services): State<crate::State>,
) -> Result<impl IntoResponse> {
let user_count = services.users.list_local_users().count().await;