Files
onemdm-server/app/controllers/installations_controller.rb
2015-11-18 15:15:31 +05:30

15 lines
318 B
Ruby

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