mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 21:39:21 +00:00
Ready to implement getList route
This commit is contained in:
parent
55566a85dc
commit
e92b3ef821
@ -43,4 +43,9 @@ pub fn create(r: &mut HttpRequestHandler) -> RequestResult {
|
|||||||
// Create the conversation
|
// Create the conversation
|
||||||
let conv_id = conversations_helper::create(&conv)?;
|
let conv_id = conversations_helper::create(&conv)?;
|
||||||
r.set_response(ResCreateConversation::new(conv_id))
|
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")
|
||||||
}
|
}
|
@ -91,6 +91,8 @@ pub fn get_routes() -> Vec<Route> {
|
|||||||
// Conversations controller
|
// Conversations controller
|
||||||
Route::post("/conversations/create", Box::new(conversations_controller::create)),
|
Route::post("/conversations/create", Box::new(conversations_controller::create)),
|
||||||
|
|
||||||
|
Route::post("/conversations/getList", Box::new(conversations_controller::get_list)),
|
||||||
|
|
||||||
|
|
||||||
// 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)),
|
||||||
|
Loading…
Reference in New Issue
Block a user