summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-09-30 17:08:52 -0700
committerZach Copley <zach@status.net>2009-09-30 17:08:52 -0700
commit8b8e0c95af8efe656c3c7a67153117ba8128456e (patch)
tree1256f16667947299da5f934884e2de8d4764fa46 /lib/router.php
parenta3901e0e243d42fb75162a063c10b77fddd7dfe5 (diff)
Add route for /statuses/show
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php
index b3bb240d9..972db4c9d 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -332,10 +332,19 @@ class Router
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json)'));
+ $m->connect('api/statuses/show.:format',
+ array('action' => 'ApiShow',
+ 'format' => '(xml|json)'));
+
+ $m->connect('api/statuses/show/:id.:format',
+ array('action' => 'ApiShow',
+ 'id' => '[a-zA-Z0-9]+',
+ 'format' => '(xml|json)'));
+
$m->connect('api/statuses/:method',
array('action' => 'api',
'apiaction' => 'statuses'),
- array('method' => '(update|show|featured)(\.(atom|rss|xml|json))?'));
+ array('method' => '(update|featured)(\.(atom|rss|xml|json))?'));
$m->connect('api/statuses/:method/:argument',
array('action' => 'api',