mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
Add API installation status update
This commit is contained in:
14
app/controllers/installations_controller.rb
Normal file
14
app/controllers/installations_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user