diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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". |