1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 07:19:22 +00:00

Ready to update conversation settings

This commit is contained in:
Pierre HUBERT 2020-06-12 09:23:02 +02:00
parent b30dc049bf
commit f3a96ffad1
2 changed files with 7 additions and 0 deletions

View File

@ -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")
}

View File

@ -96,6 +96,8 @@ pub fn get_routes() -> Vec<Route> {
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)),