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

@@ -4,7 +4,7 @@ Rails.application.routes.draw do
post 'heartbeats', to: 'heartbeats#create', :defaults => { :format => :json }
post '/installations/downloaded', :defaults => { :format => :json }
post '/installations/installed', :defaults => { :format => :json }
get '/apps',to: 'apps#index', :defaults => { :format => :json }
ActiveAdmin.routes(self)
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".