Class: TentD::API::Followings::RedirectToFollowUI
- Inherits:
-
Middleware
- Object
- Middleware
- TentD::API::Followings::RedirectToFollowUI
- 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
184 185 186 187 188 189 |
# File 'lib/tentd/api/followings.rb', line 184 def action(env) if follow_url = Model::AppAuthorization.follow_url(env.params.entity) return [302, { "Location" => follow_url }, []] end env end |