Module: ShopQiAppWebhook::Rails::Routes::Helper

Defined in:
lib/shopqi_app_webhook/rails/routes.rb

Instance Method Summary collapse

Instance Method Details

#use_shopqi_webhook(options = {}, &block) ⇒ Object



5
6
7
# File 'lib/shopqi_app_webhook/rails/routes.rb', line 5

def use_shopqi_webhook(options = {}, &block)
  self.post '/webhook', to: 'webhook#orders_fulfilled'#, format: :json
end