impl MSC2966: register clients dynamically

This commit is contained in:
lafleur 2025-04-16 21:17:36 +02:00 committed by nexy7574
commit eb4c6f9d13
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F
4 changed files with 108 additions and 0 deletions

View file

@ -130,6 +130,9 @@ pub fn build(router: Router<State>, server: &Server) -> Router<State> {
post(client::oidc_login))
.route("/_matrix/client/unstable/org.matrix.msc2964/token",
post(client::token))
// MSC2966 route.
.route("/_matrix/client/unstable/org.matrix.msc2964/device/register",
post(client::register_client))
.ruma_route(&client::send_message_event_route)
.ruma_route(&client::send_state_event_for_key_route)
.ruma_route(&client::get_state_events_route)