config/routes.rb in pay-1.0.0.rc3 vs config/routes.rb in pay-1.0.0
- old
+ new
@@ -1,4 +1,6 @@
-Rails.application.routes.draw do
- post '/webhooks/stripe', to: 'stripe_event/webhook#event'
- post '/webhooks/braintree', to: 'pay/webhooks/braintree#create'
+# frozen_string_literal: true
+
+Pay::Engine.routes.draw do
+ post 'stripe', to: 'stripe_event/webhook#event'
+ post 'braintree', to: 'pay/webhooks/braintree#create'
end