Class: Proxy::Discovery::Dispatcher
- Inherits:
-
Object
- Object
- Proxy::Discovery::Dispatcher
- Defined in:
- lib/smart_proxy_discovery/discovery_api.rb
Overview
This plugin has two separate Sinatra applications with different contexts (authorization helpers). Inbound communication is unauthorized,
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 15 16 |
# 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 |