New action for /users/show

This commit is contained in:
Zach Copley
2009-10-02 10:31:13 -07:00
parent 1e0c36afb5
commit eaef9b689a
3 changed files with 130 additions and 84 deletions

View File

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