diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-03-04 16:17:40 -0800 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-03-04 16:17:40 -0800 |
commit | 36bb33fb1d7b4befe2fb68c2eef0712619359293 (patch) | |
tree | a4eeed358907f9d4984f82723f72c40924742cf3 /lib/router.php | |
parent | 78a715bc37041a852d9e0eb6dc3e3dc0a0b9e279 (diff) |
Made /api/account/verify_credentials.format return an extended user object. Updates to status and user API objects.
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/router.php b/lib/router.php index 4b70c0150..a36cd2691 100644 --- a/lib/router.php +++ b/lib/router.php @@ -228,14 +228,15 @@ class Router // users - $m->connect('api/users/show/:argument', + $m->connect('api/users/:method/:argument', array('action' => 'api', - 'apiaction' => 'users')); + 'apiaction' => 'users'), + array('method' => 'show(\.(xml|json))?')); $m->connect('api/users/:method', array('action' => 'api', 'apiaction' => 'users'), - array('method' => 'show(\.(xml|json|atom|rss))?')); + array('method' => 'show(\.(xml|json))?')); // direct messages @@ -304,11 +305,11 @@ class Router } // account - + $m->connect('api/account/:method', array('action' => 'api', 'apiaction' => 'account')); - + // favorites $m->connect('api/favorites/:method/:argument', |