Files
onemdm-server/app/controllers/installations_controller.rb
leenasn 879a0f49e1 Add API for App Index
- Add tests for unauthorised response for APIs which require authentication
2015-11-23 12:05:45 +05:30

10 lines
215 B
Ruby

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