diff options
author | Sytse Sijbrandij <sytse@dosire.com> | 2013-11-19 16:38:43 +0100 |
---|---|---|
committer | Sytse Sijbrandij <sytse@dosire.com> | 2013-11-19 16:38:43 +0100 |
commit | 6413bfb5c640d44d38fe4054c7b33f1db285c687 (patch) | |
tree | 5e28e7be8806169ed21a0607c5b266124133d94a /lib/api/projects.rb | |
parent | 250a86d2787ae60aaf800a5ebfee69caa4d1a1d5 (diff) | |
parent | 6cc3cc515267712733d6dd1643080bd6b2cc6cdc (diff) | |
download | gitlab-ce-6413bfb5c640d44d38fe4054c7b33f1db285c687.tar.gz |
Merge branch 'master' into full-post-to-oss-security
Conflicts:
doc/release/security.md
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 42560572046..b927e63f4a4 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -31,6 +31,16 @@ module API present @projects, with: Entities::Project end + # Get all projects for admin user + # + # Example Request: + # GET /projects/all + get '/all' do + authenticated_as_admin! + @projects = paginate Project + present @projects, with: Entities::Project + end + # Get a single project # # Parameters: |