summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-05 17:10:30 -0700
committerZach Copley <zach@status.net>2009-10-05 17:10:30 -0700
commit475bdf6fba3ee8081f3726f98ecd3a50fdda305e (patch)
tree46e7fa0b7d017c5b1ce64db17ff24594f543170c /lib/router.php
parentdd0d90723142d8042991f998f2b0c355d47638b5 (diff)
New actions for the account methods we have implemented
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/router.php b/lib/router.php
index 8e6db8880..6541d69f1 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -434,9 +434,16 @@ class Router
// account
- $m->connect('api/account/:method',
- array('action' => 'api',
- 'apiaction' => 'account'));
+ $m->connect('api/account/verify_credentials.:format',
+ array('action' => 'ApiAccountVerifyCredentials'));
+
+ // special case where verify_credentials is called w/out a format
+
+ $m->connect('api/account/verify_credentials',
+ array('action' => 'ApiAccountVerifyCredentials'));
+
+ $m->connect('api/account/rate_limit_status.:format',
+ array('action' => 'ApiAccountRateLimitStatus'));
// favorites