Add API for App Index

- Add tests for unauthorised response for APIs which require authentication
This commit is contained in:
leenasn
2015-11-23 12:05:45 +05:30
parent b881726a25
commit 879a0f49e1
6 changed files with 59 additions and 26 deletions

View File

@@ -2,11 +2,6 @@ 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