Adding 'shortlink' functions which will allow URLs like http://osm.org/go/XXXX suitable for use in twitter, etc...

This commit is contained in:
Matt Amos 2009-06-25 23:31:53 +00:00
parent 2f6aab7124
commit 1d8e66016c
9 changed files with 213 additions and 2 deletions

View file

@ -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'