Commit 68109727 authored by Eric Davis's avatar Eric Davis

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
parent e160a3ee
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment