Can retrieve room media
This commit is contained in:
@@ -177,6 +177,10 @@ async fn main() -> std::io::Result<()> {
|
||||
"/api/matrix/room/{room_id}/event/{event_id}/set_text_content",
|
||||
web::post().to(matrix_event_controller::set_text_content),
|
||||
)
|
||||
.route(
|
||||
"/api/matrix/room/{room_id}/event/{event_id}/file",
|
||||
web::get().to(matrix_event_controller::event_file),
|
||||
)
|
||||
.route(
|
||||
"/api/matrix/room/{room_id}/event/{event_id}/react",
|
||||
web::post().to(matrix_event_controller::react_to_event),
|
||||
@@ -188,7 +192,7 @@ async fn main() -> std::io::Result<()> {
|
||||
// Matrix media controller
|
||||
.route(
|
||||
"/api/matrix/media/{mxc}",
|
||||
web::get().to(matrix_media_controller::serve_media_res),
|
||||
web::get().to(matrix_media_controller::serve_mxc_handler),
|
||||
)
|
||||
})
|
||||
.workers(4)
|
||||
|
||||
Reference in New Issue
Block a user