diff --git a/assets/javascripts/discourse/discourse-payments-route-map.js.es6 b/assets/javascripts/discourse/discourse-payments-route-map.js.es6 index 168646c..85513dd 100644 --- a/assets/javascripts/discourse/discourse-payments-route-map.js.es6 +++ b/assets/javascripts/discourse/discourse-payments-route-map.js.es6 @@ -4,3 +4,7 @@ export default { this.route('payments'); } }; + +export default function() { + this.route('stripe'); +}; diff --git a/assets/javascripts/discourse/templates/stripe.hbs b/assets/javascripts/discourse/templates/stripe.hbs new file mode 100644 index 0000000..3b18e51 --- /dev/null +++ b/assets/javascripts/discourse/templates/stripe.hbs @@ -0,0 +1 @@ +hello world diff --git a/config/routes.rb b/config/routes.rb index 519853a..6e644df 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ DiscourseDonations::Engine.routes.draw do resources :charges, only: [:create] get 'users/:username/payments' => 'payments#show' + get 'stripe' => 'payments#show' end