diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-04-29 16:25:03 +0200 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-05-20 15:58:36 -0500 |
commit | e166a8022a3f239938a1449a0a8ce3485f309766 (patch) | |
tree | af9f612f599b01f5736e7b439f9579d77658f156 /lib/api/entities.rb | |
parent | 56eb42007ae8c3c390b35bf336884b3bad3591c5 (diff) | |
download | gitlab-ce-e166a8022a3f239938a1449a0a8ce3485f309766.tar.gz |
Backend for a gitignores dropdown
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 8298e3ad34c..31491cf31dd 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -457,5 +457,13 @@ module API expose(:limitations) { |license| license.meta['limitations'] } expose :content end + + class GitignoresList < Grape::Entity + expose :name + end + + class Gitignore < Grape::Entity + expose :name, :content + end end end |