1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-29 16:56:28 +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

@ -60,3 +60,8 @@ pub fn get_single(r: &mut HttpRequestHandler) -> RequestResult {
r.set_response(ConversationAPI::new(&conv)) 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/getInfoOne", Box::new(conversations_controller::get_single)),
Route::post("/conversations/getInfosOne", 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 // Virtual directory controller
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)), Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),