Added API applications#index action and test