diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index ad7a44dc9..c80b75bec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -397,7 +397,7 @@ Rails.application.routes.draw do match 'uploads', :to => 'attachments#upload', :via => :post - get 'robots', :to => 'welcome#robots' + get 'robots.:format', :to => 'welcome#robots', :constraints => {:format => 'txt'} Dir.glob File.expand_path("#{Redmine::Plugin.directory}/*") do |plugin_dir| file = File.join(plugin_dir, "config/routes.rb") |