feat: add /_conduwuit/local_user_count
endpoint
only enabled if federation is enabled Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
32161801ed
commit
1c7c5bc09c
2 changed files with 16 additions and 1 deletions
|
@ -220,11 +220,13 @@ pub fn build(router: Router, server: &Server) -> Router {
|
|||
.ruma_route(server_server::claim_keys_route)
|
||||
.ruma_route(server_server::get_hierarchy_route)
|
||||
.ruma_route(server_server::well_known_server)
|
||||
.route("/_conduwuit/local_user_count", get(client_server::conduwuit_local_user_count))
|
||||
} else {
|
||||
router
|
||||
.route("/_matrix/federation/*path", any(federation_disabled))
|
||||
.route("/.well-known/matrix/server", any(federation_disabled))
|
||||
.route("/_matrix/key/*path", any(federation_disabled))
|
||||
.route("/_conduwuit/local_user_count", any(federation_disabled))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue