diff options
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/router.php b/lib/router.php index 357c70224..57f9864bc 100644 --- a/lib/router.php +++ b/lib/router.php @@ -361,10 +361,10 @@ class Router // users - $m->connect('api/users/:method/:argument', - array('action' => 'api', - 'apiaction' => 'users'), - array('method' => 'show(\.(xml|json))?')); + $m->connect('api/users/show/:id.:format', + array('action' => 'ApiUserShow', + 'id' => '[a-zA-Z0-9]+', + 'format' => '(xml|json)')); $m->connect('api/users/:method', array('action' => 'api', |