Commit bcccf6c1 authored by Travis Miller's avatar Travis Miller

Add pages domains API entities

parent aca58784
...@@ -1043,5 +1043,22 @@ module API ...@@ -1043,5 +1043,22 @@ module API
expose :key expose :key
expose :value expose :value
end end
class PagesDomainCertificate < Grape::Entity
expose :subject
expose :expired?, as: :expired
expose :certificate
expose :certificate_text
end
class PagesDomain < Grape::Entity
expose :domain
expose :url
expose :certificate,
if: ->(pages_domain, _) { pages_domain.certificate? },
using: PagesDomainCertificate do |pages_domain|
pages_domain
end
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment