summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2015-03-28 23:14:33 -0700
committerJesse Morgan <jesse@jesterpm.net>2015-03-28 23:14:33 -0700
commit1370d21460255914e03754fb0f20052e6b3002d7 (patch)
tree7d8275a293e71286df430bef3e55d6b0ebdf9a4c /config/routes.rb
parent43743c4b42b01eb95bec6ab5e4991121b06c9c36 (diff)
Crude first pass at downloading files.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb3
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".