[BREAK BUILD] Upgrade URL rewriting to Routes (there is one test case in routes_test.rb that fails, and it depends on some refactoring that I agreed upon with Ulysses)
This commit is contained in:
parent
9c04ed3461
commit
5e25a94e51
10 changed files with 93 additions and 234 deletions
19
config/routes.rb
Normal file
19
config/routes.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
ActionController::Routing.draw do |map|
|
||||
map.connect 'create_system', :controller => 'admin', :action => 'create_system'
|
||||
map.connect 'create_web', :controller => 'admin', :action => 'create_web'
|
||||
map.connect 'edit_web', :controller => 'admin', :action => 'edit_web'
|
||||
map.connect 'remove_orphaned_pages', :controller => 'admin', :action => 'remove_orphaned_pages'
|
||||
|
||||
map.connect ':web/file/:id', :controller => 'file', :action => 'file'
|
||||
map.connect ':web/pic/:id', :controller => 'file', :action => 'pic'
|
||||
map.connect ':web/import/:id', :controller => 'file', :action => 'import'
|
||||
|
||||
map.connect 'login', :controller => 'wiki', :action => 'login'
|
||||
map.connect ':web/login', :controller => 'wiki', :action => 'login'
|
||||
map.connect 'web_list', :controller => 'wiki', :action => 'web_list'
|
||||
map.connect ':web/web_list', :controller => 'wiki', :action => 'web_list'
|
||||
map.connect ':web/:action/:id', :controller => 'wiki'
|
||||
map.connect ':web/:action', :controller => 'wiki'
|
||||
map.connect ':web', :controller => 'wiki', :action => 'index'
|
||||
map.connect '', :controller => 'wiki', :action => 'index'
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue