summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/router.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/router.php b/lib/router.php
index 972db4c9d..1ea06afe0 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -341,15 +341,14 @@ class Router
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json)'));
- $m->connect('api/statuses/:method',
- array('action' => 'api',
- 'apiaction' => 'statuses'),
- array('method' => '(update|featured)(\.(atom|rss|xml|json))?'));
+ $m->connect('api/statuses/update.:format',
+ array('action' => 'ApiUpdate',
+ 'format' => '(xml|json)'));
$m->connect('api/statuses/:method/:argument',
array('action' => 'api',
'apiaction' => 'statuses'),
- array('method' => '(show|destroy)'));
+ array('method' => 'destroy'));
// users