summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-10-19 14:08:30 +0000
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-11-02 13:14:12 +0100
commit57fd233a557158dbaa1a227f7c549fbe6a45e799 (patch)
tree6b6b6fb091ba260807246c85f51b9e91213b4fce /lib
parenta4827ee2b9a5dd51356a4e11455c0075fe6cea69 (diff)
downloadgitlab-ce-57fd233a557158dbaa1a227f7c549fbe6a45e799.tar.gz
Update docs and unexpose token
Diffstat (limited to 'lib')
-rw-r--r--lib/api/entities.rb2
-rw-r--r--lib/api/system_hooks.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index c6c7747d022..47a5874ae75 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -44,7 +44,7 @@ module API
class Hook < Grape::Entity
expose :id, :url, :created_at, :push_events, :tag_push_events
- expose :enable_ssl_verification, :token
+ expose :enable_ssl_verification
end
class ProjectHook < Hook
diff --git a/lib/api/system_hooks.rb b/lib/api/system_hooks.rb
index ca95c044ecc..32f731c5652 100644
--- a/lib/api/system_hooks.rb
+++ b/lib/api/system_hooks.rb
@@ -12,6 +12,7 @@ module API
end
get do
hooks = SystemHook.all
+
present hooks, with: Entities::Hook
end