discourse/app/serializers/admin_web_hook_event_serializer.rb
2016-09-05 18:44:00 +08:00

18 lines
370 B
Ruby

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