diff options
author | Zach Copley <zach@status.net> | 2009-10-02 10:31:13 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-10-02 10:31:13 -0700 |
commit | eaef9b689ab41eed23eb74841ed5038066c485a3 (patch) | |
tree | 55299259bd7404b9bd8a824d13969c286ea454e2 /lib/router.php | |
parent | 1e0c36afb5c265eff1d72331b44239e35f5226ed (diff) |
New action for /users/show
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', |