Add API installation status update

This commit is contained in:
leenasn
2015-11-18 15:15:31 +05:30
parent 9ba5ea1e39
commit 354b42a70c
6 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class InstallationsController < ApplicationController
before_action :authenticate_device
respond_to :json
def downloaded
Installation.find(params[:id]).downloaded!
render json:{}, status: :ok
end
def installed
Installation.find(params[:id]).installed!
render json:{}, status: :ok
end
end