summaryrefslogtreecommitdiff
path: root/lib/api/v3
diff options
context:
space:
mode:
authorJarka Kadlecová <jarka@gitlab.com>2018-01-31 15:59:59 +0100
committerJarka Kadlecová <jarka@gitlab.com>2018-02-06 16:02:02 +0100
commit7381944565701f2a8db5d58d5bc3c7e52e7f60bf (patch)
treea9bb7687b3809082555bd78dd5e1c5696d768910 /lib/api/v3
parent0e15a5b805e832c22c67cead8c4829e6c77cd498 (diff)
downloadgitlab-ce-7381944565701f2a8db5d58d5bc3c7e52e7f60bf.tar.gz
Support search in API
Diffstat (limited to 'lib/api/v3')
-rw-r--r--lib/api/v3/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/projects.rb b/lib/api/v3/projects.rb
index c856ba99f09..7d8b1f369fe 100644
--- a/lib/api/v3/projects.rb
+++ b/lib/api/v3/projects.rb
@@ -174,7 +174,7 @@ module API
use :pagination
end
get "/search/:query", requirements: { query: %r{[^/]+} } do
- search_service = Search::GlobalService.new(current_user, search: params[:query]).execute
+ search_service = ::Search::GlobalService.new(current_user, search: params[:query]).execute
projects = search_service.objects('projects', params[:page], false)
projects = projects.reorder(params[:order_by] => params[:sort])