Method: TentD::API::Apps::Destroy#action

Defined in:
lib/tentd/api/apps.rb

#action(env) ⇒ Object



134
135
136
137
138
139
# File 'lib/tentd/api/apps.rb', line 134

def action(env)
  if (app = Model::App.get(env.params.app_id)) && app.destroy
    env.response = ''
  end
  env
end