class Rack::PactBroker::UIRequestFilter
Public Class Methods
Source
# File lib/rack/pact_broker/ui_request_filter.rb, line 14 def initialize app @app = app end
Public Instance Methods
Source
# File lib/rack/pact_broker/ui_request_filter.rb, line 18 def call env if request_for_ui?(env) @app.call(env) else # send the request on to the next app in the Rack::Cascade [404, {},[]] end end