Change the app_usages API to accept array of data

- Add foreignkey to device for AppUsage
- Rename the route to app_usage from app_usage/create
This commit is contained in:
Leena
2016-02-05 08:24:39 +05:30
parent 45bcc78962
commit abe0b6c083
8 changed files with 22 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
Rails.application.routes.draw do
post 'app_usages/create', to: 'app_usages#create', :defaults => { :format => :json }
post 'app_usages', to: 'app_usages#create', :defaults => { :format => :json }
devise_for :admin_users, ActiveAdmin::Devise.config