Module: Rhoconnect::Handler::PluginCallbacks
- Defined in:
- lib/rhoconnect/handler/plugin_callbacks.rb,
lib/rhoconnect/handler/plugin_callbacks/runner.rb,
lib/rhoconnect/handler/plugin_callbacks/execute_methods.rb
Defined Under Namespace
Modules: ExecuteMethods Classes: Runner
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rhoconnect/handler/plugin_callbacks.rb', line 7 def self.registered(app) # push objects app.post "/push_objects", \ { :rc_handler => :push_objects, :admin_required => true, :login_required => false, :source_required => false, :client_required => false, :deprecated_route => {:verb => :post, :url => ['/api/push_objects', '/api/source/push_objects']} } do @model.push_objects(params) end # push_deletes app.post "/push_deletes", \ { :rc_handler => :push_deletes, :admin_required => true, :login_required => false, :source_required => false, :client_required => false, :deprecated_route => {:verb => :post, :url => ['/api/push_deletes', '/api/source/push_deletes']} } do @model.push_deletes(params) end # fast insert app.post "/fast_insert", \ { :admin_required => true, :login_required => false, :source_required => false, :client_required => false, :deprecated_route => {:verb => :post, :url => ['/api/fast_insert', '/api/source/fast_insert']} } do do_fast_insert end # fast update app.post "/fast_update", \ { :admin_required => true, :login_required => false, :source_required => false, :client_required => false, :deprecated_route => {:verb => :post, :url => ['/api/fast_update', '/api/source/fast_update']} } do do_fast_update end # fast object delete app.post "/fast_delete", \ { :admin_required => true, :login_required => false, :source_required => false, :client_required => false, :deprecated_route => {:verb => :post, :url => ['/api/fast_delete', '/api/source/fast_delete']} } do do_fast_delete end end |