Can get single profile information
This commit is contained in:
@@ -9,7 +9,7 @@ use actix_web::{App, HttpServer, web};
|
||||
use matrixgw_backend::app_config::AppConfig;
|
||||
use matrixgw_backend::broadcast_messages::BroadcastMessage;
|
||||
use matrixgw_backend::constants;
|
||||
use matrixgw_backend::controllers::matrix::matrix_room_controller;
|
||||
use matrixgw_backend::controllers::matrix::{matrix_profile_controller, matrix_room_controller};
|
||||
use matrixgw_backend::controllers::{
|
||||
auth_controller, matrix_link_controller, matrix_sync_thread_controller, server_controller,
|
||||
tokens_controller, ws_controller,
|
||||
@@ -148,6 +148,11 @@ async fn main() -> std::io::Result<()> {
|
||||
"/api/matrix/room/{id}/avatar",
|
||||
web::get().to(matrix_room_controller::room_avatar),
|
||||
)
|
||||
// Matrix profile controller
|
||||
.route(
|
||||
"/api/matrix/profile/{user_id}",
|
||||
web::get().to(matrix_profile_controller::get_profile),
|
||||
)
|
||||
})
|
||||
.workers(4)
|
||||
.bind(&AppConfig::get().listen_address)?
|
||||
|
||||
Reference in New Issue
Block a user