]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/router.php
Add internal URL shortener
[quix0rs-gnu-social.git] / lib / router.php
index 99d8aeb043925afa9caa60d0a8f534256954bc72..10e5291588a793c28650b0607da616b13ca87e3e 100644 (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));