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

Ready to implement global search

This commit is contained in:
Pierre HUBERT 2020-06-23 15:14:17 +02:00
parent 6fd5d01550
commit c4eec8150c
2 changed files with 7 additions and 0 deletions

View File

@ -124,6 +124,8 @@ pub fn get_routes() -> Vec<Route> {
Route::post("/search/user", Box::new(search_controller::search_user)),
Route::post("/user/search", Box::new(search_controller::search_user)),
Route::post("/search/global", Box::new(search_controller::search_global)),
// Virtual directory controller
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),

View File

@ -14,4 +14,9 @@ pub fn search_user(r: &mut HttpRequestHandler) -> RequestResult {
let list = user_helper::search_user(&query, limit)?;
r.set_response(list)
}
/// Perform a global search
pub fn search_global(r: &mut HttpRequestHandler) -> RequestResult {
r.success("implement me")
}