1
0
mirror of https://github.com/discourse/discourse.git synced 2025-03-07 11:49:47 +00:00
discourse/app/serializers/admin_web_hook_event_serializer.rb

17 lines
369 B
Ruby
Raw Normal View History

2016-06-15 19:49:57 +02:00
class AdminWebHookEventSerializer < ApplicationSerializer
attributes :id,
:web_hook_id,
:request_url,
:headers,
:payload,
:status,
:response_headers,
:response_body,
:duration,
:created_at
def request_url
object.web_hook.payload_url
end
end