mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-29 13:44:33 +01:00
Merge branch 'trailingslash' into 'next'
fix: allow trailing slashes for /state/<type>/ again See merge request famedly/conduit!336
This commit is contained in:
commit
0066f20bdd
1 changed files with 16 additions and 0 deletions
16
src/main.rs
16
src/main.rs
|
@ -274,6 +274,22 @@ fn routes() -> Router {
|
||||||
get(client_server::get_state_events_for_empty_key_route)
|
get(client_server::get_state_events_for_empty_key_route)
|
||||||
.put(client_server::send_state_event_for_empty_key_route),
|
.put(client_server::send_state_event_for_empty_key_route),
|
||||||
)
|
)
|
||||||
|
.route(
|
||||||
|
"/_matrix/client/v3/rooms/:room_id/state/:event_type",
|
||||||
|
get(client_server::get_state_events_for_empty_key_route)
|
||||||
|
.put(client_server::send_state_event_for_empty_key_route),
|
||||||
|
)
|
||||||
|
// These two endpoints allow trailing slashes
|
||||||
|
.route(
|
||||||
|
"/_matrix/client/r0/rooms/:room_id/state/:event_type/",
|
||||||
|
get(client_server::get_state_events_for_empty_key_route)
|
||||||
|
.put(client_server::send_state_event_for_empty_key_route),
|
||||||
|
)
|
||||||
|
.route(
|
||||||
|
"/_matrix/client/v3/rooms/:room_id/state/:event_type/",
|
||||||
|
get(client_server::get_state_events_for_empty_key_route)
|
||||||
|
.put(client_server::send_state_event_for_empty_key_route),
|
||||||
|
)
|
||||||
.ruma_route(client_server::sync_events_route)
|
.ruma_route(client_server::sync_events_route)
|
||||||
.ruma_route(client_server::get_context_route)
|
.ruma_route(client_server::get_context_route)
|
||||||
.ruma_route(client_server::get_message_events_route)
|
.ruma_route(client_server::get_message_events_route)
|
||||||
|
|
Loading…
Reference in a new issue