Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Commit 4a0ddb7

Browse files
committed
Merge pull request #1177 from ualbertalib/1071_download_link
Handle /files/<noid>/<file> download link; closes 1071
2 parents 72ff4c6 + 8072cc2 commit 4a0ddb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/routes.rb

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
get '/public/view/author/:username' => 'redirect#author'
4444
get '/action/submit/init/thesis/:uuid' => 'redirect#thesis'
4545

46+
# handle file download links below /files/<noid>
47+
get '/files/:id/*file' => 'downloads#show', format: false
48+
4649
scope :dashboard do
4750

4851
get '/files', controller: 'my/files', action: :index, as: 'dashboard_files'

0 commit comments

Comments
 (0)