From 1370d21460255914e03754fb0f20052e6b3002d7 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 28 Mar 2015 23:14:33 -0700 Subject: Crude first pass at downloading files. --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 1486509..33b0274 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,6 @@ Rails.application.routes.draw do - resources :downloads + get 'downloads' => 'downloads#index' + get 'downloads/:filename' => 'downloads#download', :filename => /.+/, :as => 'download' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". -- cgit v1.2.3