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