add pagination to API
This commit is contained in:
parent
6817a6a295
commit
76e4d94d43
6 changed files with 16 additions and 5 deletions
|
@ -9,7 +9,7 @@ module Gitlab
|
|||
# Example Request:
|
||||
# GET /users
|
||||
get do
|
||||
@users = User.all
|
||||
@users = paginate User
|
||||
present @users, with: Entities::User
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue