From: Eric Davis Date: Fri, 17 Oct 2008 23:30:37 +0000 (+0000) Subject: Added a plugin hook :routes that plugins can use to add and even override routes X-Git-Tag: 0.8.0-RC1~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68109727626cfcc8a9003045da1c297341d80424;p=redmine.git Added a plugin hook :routes that plugins can use to add and even override routes git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1936 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/config/routes.rb b/config/routes.rb index 913a8020f..b506b6c10 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,6 +6,9 @@ ActionController::Routing::Routes.draw do |map| # map.connect 'products/:id', :controller => 'catalog', :action => 'view' # Keep in mind you can assign values other than :controller and :action + # Allow Redmine plugins to map routes and potentially override them + Redmine::Hook.call_hook :routes, :map => map + map.home '', :controller => 'welcome' map.signin 'login', :controller => 'account', :action => 'login' map.signout 'logout', :controller => 'account', :action => 'logout'