Add route for /statuses/show

This commit is contained in:
Zach Copley 2009-09-30 17:08:52 -07:00
parent a3901e0e24
commit 8b8e0c95af
2 changed files with 15 additions and 6 deletions

View File

@ -83,7 +83,7 @@ class ApiShowAction extends TwitterapiAction
/**
* Handle the request
*
* Just show the notices
* Check the format and show the notice
*
* @param array $args $_REQUEST data (unused)
*
@ -103,7 +103,7 @@ class ApiShowAction extends TwitterapiAction
}
/**
* Show the timeline of notices
* Show the notice
*
* @return void
*/

View File

@ -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',