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 /projects
|
||||
get do
|
||||
@projects = current_user.projects
|
||||
@projects = paginate current_user.projects
|
||||
present @projects, with: Entities::Project
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue