summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/router.php b/lib/router.php
index 3de4e322f..5c9513f57 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -342,17 +342,22 @@ class Router
$m->connect('api/statuses/show/:id.:format',
array('action' => 'ApiShow',
- 'id' => '[a-zA-Z0-9]+',
+ 'id' => '[0-9]+',
'format' => '(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' => 'destroy'));
+ $m->connect('api/statuses/destroy.:format',
+ array('action' => 'ApiDestroy',
+ 'format' => '(xml|json)'));
+
+ $m->connect('api/statuses/destroy/:id.:format',
+ array('action' => 'ApiDestroy',
+ 'id' => '[0-9]+',
+ 'format' => '(xml|json)'));
+
// users