summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2017-02-06 15:28:08 +0100
committerMarin Jankovski <maxlazio@gmail.com>2017-02-06 15:28:08 +0100
commita8b4c75f21c25b1ce6cbbb904df077522007fc20 (patch)
tree5438ca40d9f83bf29c4541b5c1de33b6c69c8f57 /lib/api/projects.rb
parent3f01f05bde8e55b533bc0468ed62485141e827e8 (diff)
parent178626ed6114055d756c7d4a13d5f5eec8fa2a85 (diff)
downloadgitlab-ce-a8b4c75f21c25b1ce6cbbb904df077522007fc20.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 941f47114a4..92a70faf1c2 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -151,22 +151,6 @@ module API
present_projects Project.all, with: Entities::ProjectWithAccess, statistics: params[:statistics]
end
- desc 'Search for projects the current user has access to' do
- success Entities::Project
- end
- params do
- requires :query, type: String, desc: 'The project name to be searched'
- use :sort_params
- use :pagination
- end
- get "/search/:query", requirements: { query: /[^\/]+/ } do
- search_service = Search::GlobalService.new(current_user, search: params[:query]).execute
- projects = search_service.objects('projects', params[:page])
- projects = projects.reorder(params[:order_by] => params[:sort])
-
- present paginate(projects), with: Entities::Project
- end
-
desc 'Create new project' do
success Entities::Project
end