1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-28 14:38:52 +00:00

Ready to implement getList route

This commit is contained in:
Pierre HUBERT 2020-06-04 17:51:22 +02:00
parent 55566a85dc
commit e92b3ef821
2 changed files with 7 additions and 0 deletions

View File

@ -43,4 +43,9 @@ pub fn create(r: &mut HttpRequestHandler) -> RequestResult {
// Create the conversation
let conv_id = conversations_helper::create(&conv)?;
r.set_response(ResCreateConversation::new(conv_id))
}
/// Get the list of conversations of a user
pub fn get_list(r: &mut HttpRequestHandler) -> RequestResult {
r.success("Get the list of conversations")
}

View File

@ -91,6 +91,8 @@ pub fn get_routes() -> Vec<Route> {
// Conversations controller
Route::post("/conversations/create", Box::new(conversations_controller::create)),
Route::post("/conversations/getList", Box::new(conversations_controller::get_list)),
// Virtual directory controller
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),