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 30 def self.routes 31 Puppet::Network::HTTP::Route.path(%r{v3}). 32 any. 33 chain(ENVIRONMENTS, INDIRECTED) 34 end
wrap(&block)
click to toggle source
# File lib/puppet/network/http/api/server/v3.rb 12 def self.wrap(&block) 13 lambda do |request, response| 14 Puppet::Network::Authorization. 15 check_external_authorization(request.method, 16 request.path) 17 18 block.call.call(request, response) 19 end 20 end