diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ea7aa5a..ad3f719 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -87,4 +87,14 @@ def glossary send_data csv, type: 'text/csv; charset=utf-8; header=present' end + + def about + csv = CSV.generate(headers: true) do |rows| + rows << ['Page url', 'http://eshop.calyh.re'] + rows << ['Author', 'https://reddit.com/u/Calyhre'] + rows << ['Code', 'https://github.com/Calyhre/eshop-prices'] + end + + send_data csv, type: 'text/csv; charset=utf-8; header=present' + end end diff --git a/config/routes.rb b/config/routes.rb index 36249b0..967a6dc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,4 +5,5 @@ get :best_deals, to: 'application#best_deals' get :rates, to: 'application#rates' get :glossary, to: 'application#glossary' + get :about, to: 'application#about' end