summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/projects.rb')
-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 38c8c1b..bdd6f81 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -147,7 +147,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 }
@@ -161,7 +161,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 }