Add internal URL shortener

This commit is contained in:
Evan Prodromou
2011-01-23 16:49:12 -05:00
parent ba2128f2d1
commit 570c7b63a2
5 changed files with 179 additions and 22 deletions

View File

@@ -974,6 +974,12 @@ class Router
array('action' => 'AtomPubMembershipFeed'),
array('profile' => '[0-9]+'));
// URL shortening
$m->connect('url/:id',
array('action' => 'redirecturl',
'id' => '[0-9]+'));
// user stuff
Event::handle('RouterInitialized', array($m));