]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add missing rule for /api/users/show.:format
authorZach Copley <zach@status.net>
Tue, 1 Dec 2009 18:02:22 +0000 (10:02 -0800)
committerZach Copley <zach@status.net>
Tue, 1 Dec 2009 20:42:51 +0000 (12:42 -0800)
lib/router.php

index beb98eb04de1c77ff4335defa58ca6d8ed9828f9..1a090861e49b65583322e3fdace69a2d351a3449 100644 (file)
@@ -358,6 +358,10 @@ class Router
 
             // users
 
+            $m->connect('api/users/show.:format',
+                        array('action' => 'ApiUserShow',
+                              'format' => '(xml|json)'));
+
             $m->connect('api/users/show/:id.:format',
                         array('action' => 'ApiUserShow',
                               'id' => '[a-zA-Z0-9]+',