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:
parent
b30dc049bf
commit
f3a96ffad1
@ -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")
|
||||
}
|
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user