Class: Foauth::Proxy

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/foauth.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



23
24
25
26
# File 'lib/foauth.rb', line 23

def call(env)
  env[:url] = foauth_proxy_url(env[:url])
  @app.call(env)
end