diff --git a/app/controllers/widget_controller.rb b/app/controllers/widget_controller.rb new file mode 100644 index 00000000..f0778aaf --- /dev/null +++ b/app/controllers/widget_controller.rb @@ -0,0 +1,5 @@ +class WidgetController < ApplicationController + def v2 + redirect_to(asset_pack_url("donate-button-v2.js")) + end +end diff --git a/config/routes.rb b/config/routes.rb index a1578a10..6b4a9737 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -257,7 +257,6 @@ Rails.application.routes.draw do get '/static/terms_and_privacy' => 'static#terms_and_privacy' get '/static/ccs' => 'static#ccs' - - + get '/js/donate-button.v2.js' => 'widget#v2' root to: 'front#index' end