Adding 'shortlink' functions which will allow URLs like http://osm.org/go/XXXX suitable for use in twitter, etc...
This commit is contained in:
parent
2f6aab7124
commit
1d8e66016c
9 changed files with 213 additions and 2 deletions
|
@ -114,6 +114,9 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.connect '/create-account.html', :controller => 'user', :action => 'new'
|
||||
map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password'
|
||||
|
||||
# permalink
|
||||
map.connect '/go/:code', :controller => 'site', :action => 'permalink', :code => /[a-zA-Z0-9_@]+=*/
|
||||
|
||||
# traces
|
||||
map.connect '/traces', :controller => 'trace', :action => 'list'
|
||||
map.connect '/traces/page/:page', :controller => 'trace', :action => 'list'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue