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