Can get room messages

This commit is contained in:
2025-11-24 12:36:59 +01:00
parent 7562a7fc61
commit bf119a34fb
3 changed files with 42 additions and 5 deletions

View File

@@ -10,7 +10,8 @@ use matrixgw_backend::app_config::AppConfig;
use matrixgw_backend::broadcast_messages::BroadcastMessage;
use matrixgw_backend::constants;
use matrixgw_backend::controllers::matrix::{
matrix_media_controller, matrix_profile_controller, matrix_room_controller,
matrix_event_controller, matrix_media_controller, matrix_profile_controller,
matrix_room_controller,
};
use matrixgw_backend::controllers::{
auth_controller, matrix_link_controller, matrix_sync_thread_controller, server_controller,
@@ -163,6 +164,11 @@ async fn main() -> std::io::Result<()> {
"/api/matrix/profile/get_multiple",
web::post().to(matrix_profile_controller::get_multiple),
)
// Matrix events controller
.route(
"/api/matrix/room/{id}/events",
web::get().to(matrix_event_controller::get_for_room),
)
// Matrix media controller
.route(
"/api/matrix/media/{mxc}",