Skip to content
Snippets Groups Projects
Commit bcccf6c1 authored by Travis Miller's avatar Travis Miller
Browse files

Add pages domains API entities

parent aca58784
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1043,5 +1043,22 @@ module API
expose :key
expose :value
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment