Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-10-19 17:08:30 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-11-02 15:14:12 +0300
commit57fd233a557158dbaa1a227f7c549fbe6a45e799 (patch)
tree6b6b6fb091ba260807246c85f51b9e91213b4fce /lib/api
parenta4827ee2b9a5dd51356a4e11455c0075fe6cea69 (diff)
Update docs and unexpose token
Diffstat (limited to 'lib/api')
-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