Can redact message

This commit is contained in:
2025-11-24 13:06:31 +01:00
parent 639cc6c737
commit 0a395b0d26
3 changed files with 37 additions and 9 deletions

View File

@@ -148,11 +148,11 @@ async fn main() -> std::io::Result<()> {
web::get().to(matrix_room_controller::get_joined_spaces),
)
.route(
"/api/matrix/room/{id}",
"/api/matrix/room/{room_id}",
web::get().to(matrix_room_controller::single_room_info),
)
.route(
"/api/matrix/room/{id}/avatar",
"/api/matrix/room/{room_id}/avatar",
web::get().to(matrix_room_controller::room_avatar),
)
// Matrix profile controller
@@ -166,13 +166,17 @@ async fn main() -> std::io::Result<()> {
)
// Matrix events controller
.route(
"/api/matrix/room/{id}/events",
"/api/matrix/room/{room_id}/events",
web::get().to(matrix_event_controller::get_for_room),
)
.route(
"/api/matrix/room/{id}/send_text_message",
"/api/matrix/room/{room_id}/send_text_message",
web::post().to(matrix_event_controller::send_text_message),
)
.route(
"/api/matrix/room/{room_id}/event/{event_id}",
web::delete().to(matrix_event_controller::redact_event),
)
// Matrix media controller
.route(
"/api/matrix/media/{mxc}",