Class: TentD::API::Followings::RewriteProxyCaptureParams
- Inherits:
-
Middleware
- Object
- Middleware
- TentD::API::Followings::RewriteProxyCaptureParams
- Defined in:
- lib/tentd/api/followings.rb
Instance Method Summary collapse
Methods inherited from Middleware
Methods included from Authorizable
#authorize_env!, #authorize_env?
Constructor Details
This class inherits a constructor from TentD::API::Middleware
Instance Method Details
#action(env) ⇒ Object
158 159 160 161 162 163 |
# File 'lib/tentd/api/followings.rb', line 158 def action(env) matches = env.params.delete(:captures) env.params.following_id = matches.first env.params.proxy_path = '/' + matches.last env end |