class Rack::PactBroker::UIRequestFilter

Public Class Methods

new(app) click to toggle source
# File lib/rack/pact_broker/ui_request_filter.rb, line 14
def initialize app
  @app = app
end

Public Instance Methods

call(env) click to toggle 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