Class: TentD::API::Apps::GetAll

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

Instance Method Summary collapse

Methods inherited from Middleware

#call, #initialize

Methods included from TentD::API::Authorizable

#authorize_env!, #authorize_env?

Constructor Details

This class inherits a constructor from TentD::API::Middleware

Instance Method Details

#action(env) ⇒ Object



63
64
65
66
# File 'lib/tentd/api/apps.rb', line 63

def action(env)
  env.response = Model::App.all
  env
end