diff --git a/src/controllers/conversations_controller.rs b/src/controllers/conversations_controller.rs index 36b099f..8c69fde 100644 --- a/src/controllers/conversations_controller.rs +++ b/src/controllers/conversations_controller.rs @@ -59,4 +59,9 @@ pub fn get_single(r: &mut HttpRequestHandler) -> RequestResult { let conv = conversations_helper::get_single(conversation_id, r.user_id()?)?; r.set_response(ConversationAPI::new(&conv)) +} + +/// Update the settings of a conversation +pub fn update_settings(r: &mut HttpRequestHandler) -> RequestResult { + r.success("implement it") } \ No newline at end of file diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index e37836e..d43472a 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -96,6 +96,8 @@ pub fn get_routes() -> Vec { Route::post("/conversations/getInfoOne", Box::new(conversations_controller::get_single)), Route::post("/conversations/getInfosOne", Box::new(conversations_controller::get_single)), + Route::post("/conversations/updateSettings", Box::new(conversations_controller::update_settings)), + // Virtual directory controller Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),