js/donate-button.v2.js now redirects to the asset pack

This commit is contained in:
Eric Schultz 2019-11-14 16:10:48 -06:00 committed by Eric Schultz
parent f5cbca1f26
commit 8d4b9d172d
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
class WidgetController < ApplicationController
def v2
redirect_to(asset_pack_url("donate-button-v2.js"))
expires_in 10.minutes
head :found, location: helpers.asset_pack_url("donate-button-v2.js"), content_type: "application/javascript"
end
end

View file

@ -259,4 +259,4 @@ Rails.application.routes.draw do
get '/js/donate-button.v2.js' => 'widget#v2'
root to: 'front#index'
end
end