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

@ -15,3 +15,8 @@ pub fn search_user(r: &mut HttpRequestHandler) -> RequestResult {
r.set_response(list)
}
/// Perform a global search
pub fn search_global(r: &mut HttpRequestHandler) -> RequestResult {
r.success("implement me")
}