Class: TentD::API::Posts::ConfirmFollowing
- Inherits:
-
Middleware
- Object
- Middleware
- TentD::API::Posts::ConfirmFollowing
- Defined in:
- lib/tentd/api/posts.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
295 296 297 298 299 300 301 |
# File 'lib/tentd/api/posts.rb', line 295 def action(env) if Model::Following.first(:public_id => env.params.following_id) [200, { 'Content-Type' => 'text/plain' }, [env.params.challenge]] else [404, {}, []] end end |