diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-05 17:51:44 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-05 17:51:44 +0100 |
commit | 77e13c2bc93fdb633f27f94989ab5770f9ecc3b3 (patch) | |
tree | c9b139593bf3bd478bfaa2e44657492cfab33f94 /app/controllers/api/v1/devices_controller.rb | |
parent | 19b9e1e2c3d621b5f9f2367980dae62648fe22fa (diff) |
Removing failed push notification API, make context loads use cache
Diffstat (limited to 'app/controllers/api/v1/devices_controller.rb')
-rw-r--r-- | app/controllers/api/v1/devices_controller.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/controllers/api/v1/devices_controller.rb b/app/controllers/api/v1/devices_controller.rb deleted file mode 100644 index c565e972b..000000000 --- a/app/controllers/api/v1/devices_controller.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -class Api::V1::DevicesController < ApiController - before_action -> { doorkeeper_authorize! :read } - before_action :require_user! - - respond_to :json - - def register - Device.where(account: current_account, registration_id: params[:registration_id]).first_or_create!(account: current_account, registration_id: params[:registration_id]) - render_empty - end - - def unregister - Device.where(account: current_account, registration_id: params[:registration_id]).delete_all - render_empty - end -end |