class Proxy::Discovery::Dispatcher

This plugin has two separate Sinatra applications with different contexts (authorization helpers). Inbound communication is unauthorized,

Public Instance Methods

call(env) click to toggle source
# File lib/smart_proxy_discovery/discovery_api.rb, line 10
def call(env)
  if env['PATH_INFO'] == '/create'
    InboundApi.new.call(env)
  else
    OutboundApi.new.call(env)
  end
end