summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-02-19 20:41:41 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-02-19 20:41:41 +0000
commit74a691de1921bc1e762b05c5717012f55652b8fe (patch)
tree1f8ab8b496b6dcc3a103bca99f5f500a7f7714f8 /config
parentec77fe4e3a08420772bdf1b92c6585ec81b4e93a (diff)
downloadredmine-74a691de1921bc1e762b05c5717012f55652b8fe.tar.gz
redmine-74a691de1921bc1e762b05c5717012f55652b8fe.zip
* Introduces @HelpController@ and a new route @help/wiki_syntax/(:type)@ to serve wiki syntax help files.
* Moves all wiki syntax help files to @app/views/help@ and CSS files to asset pipeline. (#39111, #40137). git-svn-id: https://svn.redmine.org/redmine/trunk@22719 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 421bf9b28..8e392fde5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -407,6 +407,8 @@ Rails.application.routes.draw do
get 'robots.:format', :to => 'welcome#robots', :constraints => {:format => 'txt'}
+ match 'help/wiki_syntax/(:type)', :controller => 'help', :action => 'show_wiki_syntax', :via => :get, :constraints => { :type => /detailed/ }
+
Redmine::Plugin.directory.glob("*/config/routes.rb").sort.each do |plugin_routes_path|
instance_eval(plugin_routes_path.read, plugin_routes_path.to_s)
rescue SyntaxError, StandardError => e