Heartbeat API with device token authentication

This commit is contained in:
leenasn
2015-11-09 16:19:50 +05:30
parent b51d535cfe
commit 7a2e2c15d2
5 changed files with 51 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
Rails.application.routes.draw do
devise_for :admin_users, ActiveAdmin::Devise.config
post 'heartbeats', to: 'heartbeats#create', :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".