summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-01 18:19:59 -0700
committerZach Copley <zach@status.net>2009-10-01 18:19:59 -0700
commit1e0c36afb5c265eff1d72331b44239e35f5226ed (patch)
tree3a290d4683d0e7c2782584ca9727a81d114de91b /lib
parent9a1dbee0fdd1f586512e4517a5abb7898501bc11 (diff)
Renamed and moved stuff around to better match Twitter's API organization
Diffstat (limited to 'lib')
-rw-r--r--lib/router.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/router.php b/lib/router.php
index 5c9513f57..357c70224 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -271,90 +271,90 @@ class Router
// statuses API
$m->connect('api/statuses/public_timeline.:format',
- array('action' => 'ApiPublicTimeline',
+ array('action' => 'ApiTimelinePublic',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/friends_timeline.:format',
- array('action' => 'ApiFriendsTimeline',
+ array('action' => 'ApiTimelineFriends',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/friends_timeline/:id.:format',
- array('action' => 'ApiFriendsTimeline',
+ array('action' => 'ApiTimelineFriends',
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/home_timeline.:format',
- array('action' => 'ApiFriendsTimeline',
+ array('action' => 'ApiTimelineFriends',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/home_timeline/:id.:format',
- array('action' => 'ApiFriendsTimeline',
+ array('action' => 'ApiTimelineFriends',
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/user_timeline.:format',
- array('action' => 'ApiUserTimeline',
+ array('action' => 'ApiTimelineUser',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/user_timeline/:id.:format',
- array('action' => 'ApiUserTimeline',
+ array('action' => 'ApiTimelineUser',
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/mentions.:format',
- array('action' => 'ApiMentions',
+ array('action' => 'ApiTimelineMentions',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/mentions/:id.:format',
- array('action' => 'ApiMentions',
+ array('action' => 'ApiTimelineMentions',
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/replies.:format',
- array('action' => 'ApiMentions',
+ array('action' => 'ApiTimelineMentions',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/replies/:id.:format',
- array('action' => 'ApiMentions',
+ array('action' => 'ApiTimelineMentions',
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json|rss|atom)'));
$m->connect('api/statuses/friends.:format',
- array('action' => 'ApiFriends',
+ array('action' => 'ApiUserFriends',
'format' => '(xml|json)'));
$m->connect('api/statuses/friends/:id.:format',
- array('action' => 'ApiFriends',
+ array('action' => 'ApiUserFriends',
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json)'));
$m->connect('api/statuses/followers.:format',
- array('action' => 'ApiFollowers',
+ array('action' => 'ApiUserFollowers',
'format' => '(xml|json)'));
$m->connect('api/statuses/followers/:id.:format',
- array('action' => 'ApiFollowers',
+ array('action' => 'ApiUserFollowers',
'id' => '[a-zA-Z0-9]+',
'format' => '(xml|json)'));
$m->connect('api/statuses/show.:format',
- array('action' => 'ApiShow',
+ array('action' => 'ApiStatusesShow',
'format' => '(xml|json)'));
$m->connect('api/statuses/show/:id.:format',
- array('action' => 'ApiShow',
+ array('action' => 'ApiStatusesShow',
'id' => '[0-9]+',
'format' => '(xml|json)'));
$m->connect('api/statuses/update.:format',
- array('action' => 'ApiUpdate',
+ array('action' => 'ApiStatusesUpdate',
'format' => '(xml|json)'));
$m->connect('api/statuses/destroy.:format',
- array('action' => 'ApiDestroy',
+ array('action' => 'ApiStatusesDestroy',
'format' => '(xml|json)'));
$m->connect('api/statuses/destroy/:id.:format',
- array('action' => 'ApiDestroy',
+ array('action' => 'ApiStatusesDestroy',
'id' => '[0-9]+',
'format' => '(xml|json)'));