XML-PRC controller v1
This commit is contained in:
parent
310f588621
commit
ba617742a3
4
Gemfile
4
Gemfile
|
@ -26,6 +26,10 @@ gem 'delayed_job'
|
|||
gem 'whenever', :require => false
|
||||
gem 'unicorn'
|
||||
|
||||
# XML-RPC support
|
||||
# gem 'actionwebservice' #, :git => 'git://github.com/ywen/actionwebservice.git'
|
||||
gem "rails-xmlrpc"
|
||||
|
||||
group :production do
|
||||
gem "airbrake"
|
||||
# gem 'newrelic_rpm', '~> 3.1.1'
|
||||
|
|
|
@ -181,6 +181,7 @@ GEM
|
|||
activesupport (= 3.0.10)
|
||||
bundler (~> 1.0)
|
||||
railties (= 3.0.10)
|
||||
rails-xmlrpc (0.3.2)
|
||||
rails3-generators (0.17.4)
|
||||
railties (>= 3.0.0)
|
||||
railties (3.0.10)
|
||||
|
@ -268,6 +269,7 @@ DEPENDENCIES
|
|||
paperclip (~> 2.3)
|
||||
pg (~> 0.11.0)
|
||||
rails (= 3.0.10)
|
||||
rails-xmlrpc
|
||||
rails3-generators
|
||||
rspec-rails (~> 2.7.0)
|
||||
ruby-debug
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
Rosa::Application.routes.draw do
|
||||
# XML RPC
|
||||
match 'api/xmlrpc' => 'rpc#xe_index'
|
||||
|
||||
|
||||
devise_for :users, :controllers => {:omniauth_callbacks => 'users/omniauth_callbacks'} do
|
||||
get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
|
||||
end
|
||||
|
||||
resources :users
|
||||
|
||||
resources :event_logs, :only => :index
|
||||
|
|
Loading…
Reference in New Issue