Class: TentD::API::Profile::Get

Inherits:
Middleware show all
Defined in:
lib/tentd/api/profile.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



14
15
16
17
# File 'lib/tentd/api/profile.rb', line 14

def action(env)
  env.response = Model::ProfileInfo.get_profile(env.authorized_scopes, env.current_auth)
  env
end