diff --git a/config/routes.rb b/config/routes.rb index 82f11548..e5cdafa8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -96,11 +96,11 @@ if Redmine::Plugin.installed? :redmine_dmsf get '/dmsf/files/:id/revision/obsolete', controller: 'dmsf_files', action: 'obsolete_revision', as: 'obsolete_revision' get '/dmsf/files/:id/download', to: 'dmsf_files#view', download: '', as: 'download_dmsf_file' # Otherwise will not route nil into the download param get '/dmsf/files/:id/view', to: 'dmsf_files#view', as: 'view_dmsf_file' - get '/dmsf/files/:id/:filename', to: 'dmsf_files#view', :id => /\d+/, :filename => /.*/, as: 'static_dmsf_file' get '/dmsf/files/:id', controller: 'dmsf_files', action: 'show', as: 'dmsf_file' delete '/dmsf/files/:id', controller: 'dmsf_files', action: 'delete' get '/dmsf/files/:id/restore', controller: 'dmsf_files', action: 'restore', as: 'restore_dmsf_file' get '/dmsf/files/:id/thumbnail', to: 'dmsf_files#thumbnail', as: 'dmsf_thumbnail' + get '/dmsf/files/:id/:filename', to: 'dmsf_files#view', :id => /\d+/, :filename => /.*/, as: 'static_dmsf_file' # # url controller