Made search more clear

This commit is contained in:
Pierre
2018-01-01 15:43:37 +01:00
parent c058baf394
commit c5f26e661f
2 changed files with 10 additions and 10 deletions

View File

@ -10,10 +10,10 @@ class searchController
/**
* Peform a research on the database
*
* @url POST /search/request
* @url POST /search/user
* @url POST /user/search
*/
public function searchDatabase(){
public function search_user(){
user_login_required();
//Check if the query was specified with the request
@ -28,7 +28,7 @@ class searchController
Rest_fatal_error(401, "Invalid search limit !");
//Perform research on the database and return results
$results = CS::get()->components->searchUser->search($_POST['query'], $searchLimit);
$results = CS::get()->components->search->search_user($_POST['query'], $searchLimit);
if($results === false)
Rest_fatal_error(500, "An error occured while trying to perform a research in user list !");