Class: TentD::API::Followers::Update

Inherits:
Middleware show all
Defined in:
lib/tentd/api/followers.rb

Instance Method Summary collapse

Methods inherited from Middleware

#call, #initialize

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



143
144
145
146
# File 'lib/tentd/api/followers.rb', line 143

def action(env)
  env.response = Model::Follower.update_follower(env.params[:follower_id], env.params[:data], env.authorized_scopes)
  env
end