diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-12-04 18:11:19 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-12-04 18:11:19 +0100 |
commit | 74c8669b0a96b6afcb41ce5e09b147c7309ecbeb (patch) | |
tree | 9aafc9d41139a4e63305350ec2bc812a84e3f0a1 /lib/api/access_requests.rb | |
parent | bd67459131e22273b502eb27d97709827ff42262 (diff) | |
download | gitlab-ce-74c8669b0a96b6afcb41ce5e09b147c7309ecbeb.tar.gz |
Use the pagination helper in the APIuse-pagination-helper
Diffstat (limited to 'lib/api/access_requests.rb')
-rw-r--r-- | lib/api/access_requests.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/access_requests.rb b/lib/api/access_requests.rb index ed723b94cfd..789f45489eb 100644 --- a/lib/api/access_requests.rb +++ b/lib/api/access_requests.rb @@ -1,5 +1,7 @@ module API class AccessRequests < Grape::API + include PaginationParams + before { authenticate! } helpers ::API::Helpers::MembersHelpers @@ -13,6 +15,9 @@ module API detail 'This feature was introduced in GitLab 8.11.' success Entities::AccessRequester end + params do + use :pagination + end get ":id/access_requests" do source = find_source(source_type, params[:id]) |