From 96ca372b86b0103f5dfe5eee7bc6781996abe8c1 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 16 Mar 2017 11:32:22 +1100 Subject: [PATCH] initital template --- .../javascripts/discourse/discourse-payments-route-map.js.es6 | 4 ++++ assets/javascripts/discourse/templates/stripe.hbs | 1 + config/routes.rb | 1 + 3 files changed, 6 insertions(+) create mode 100644 assets/javascripts/discourse/templates/stripe.hbs 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