add pagination to API

This commit is contained in:
Nihad Abbasov 2012-09-03 04:46:29 -07:00
parent 6817a6a295
commit 76e4d94d43
6 changed files with 16 additions and 5 deletions

View file

@ -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