summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-04-21 13:21:57 +0300
committerValery Sizov <vsv2711@gmail.com>2015-04-21 19:31:34 +0300
commitb35b54e0bf4ca973966ede1add15d88327a013d2 (patch)
tree665f0a5cbfb24ab9453e687dccf152a8f6eb6e40 /lib/api
parentb3e2939aa2904c92aba0399d511cb05228bfc9be (diff)
downloadgitlab-ci-b35b54e0bf4ca973966ede1add15d88327a013d2.tar.gz
projects search on dashboard
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/projects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index ea10a82..e61a944 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -108,7 +108,7 @@ module API
# GET /projects
get do
gitlab_projects = Project.from_gitlab(
- current_user, params[:page], params[:per_page], :authorized
+ current_user, :authorized, { page: params[:page], per_page: params[:per_page] }
)
ids = gitlab_projects.map { |project| project.id }
@@ -122,7 +122,7 @@ module API
# GET /projects/owned
get "owned" do
gitlab_projects = Project.from_gitlab(
- current_user, params[:page], params[:per_page], :owned
+ current_user, :owned, { page: params[:page], per_page: params[:per_page] }
)
ids = gitlab_projects.map { |project| project.id }