diff options
Diffstat (limited to 'lib/api/entities/hook.rb')
-rw-r--r-- | lib/api/entities/hook.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/entities/hook.rb b/lib/api/entities/hook.rb index d176e76b321..95924321221 100644 --- a/lib/api/entities/hook.rb +++ b/lib/api/entities/hook.rb @@ -8,6 +8,11 @@ module API expose :alert_status expose :disabled_until + expose :url_variables + + def url_variables + object.url_variables.keys.map { { key: _1 } } + end end end end |