class Puppet::Network::HTTP::API::Server::V3
Constants
- ENVIRONMENTS
- INDIRECTED
Public Class Methods
routes()
click to toggle source
# File lib/puppet/network/http/api/server/v3.rb 29 def self.routes 30 Puppet::Network::HTTP::Route.path(%r{v3}). 31 any. 32 chain(ENVIRONMENTS, INDIRECTED) 33 end
wrap(&block)
click to toggle source
# File lib/puppet/network/http/api/server/v3.rb 11 def self.wrap(&block) 12 lambda do |request, response| 13 Puppet::Network::Authorization. 14 check_external_authorization(request.method, 15 request.path) 16 17 block.call.call(request, response) 18 end 19 end