From 4feb4e5584fd4d1dc3c13a340f3410b188e62302 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 9 Feb 2024 04:51:05 +0000 Subject: Merged r22698 from trunk to 5.0-stable (#40208). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22700 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/routes.rb') 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") -- cgit v1.2.3