Class: TentD::API::Apps::Create
- Inherits:
-
Middleware
- Object
- Middleware
- TentD::API::Apps::Create
- Defined in:
- lib/tentd/api/apps.rb
Instance Method Summary collapse
Methods inherited from Middleware
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
70 71 72 73 74 |
# File 'lib/tentd/api/apps.rb', line 70 def action(env) env.response = Model::App.create_from_params(env.params.data) env. << :read_secrets env end |