Class: AcmeChallengesController

Inherits:
BaseActionController show all
Defined in:
app/controllers/acme_challenges_controller.rb

Instance Method Summary collapse

Methods included from ContentSecurityPolicyPatch

#content_security_policy_with_context

Instance Method Details

#showObject



4
5
6
7
8
9
10
# File 'app/controllers/acme_challenges_controller.rb', line 4

def show
  if acme_order
    render plain: acme_order.challenge_file_content, content_type: 'text/plain'
  else
    head :not_found
  end
end