summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-06 17:26:45 -0700
committerZach Copley <zach@status.net>2009-10-06 17:26:45 -0700
commit170b009865e3fcb183d562f47d66986b0e397f2d (patch)
tree584a10af763f879eaf7e61b3d153bbb0fbc864ed /lib/router.php
parent85af1c92adef021a91ed3618b748435248bf1023 (diff)
New action for group timelines via API
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/router.php b/lib/router.php
index 03210ce98..dbe2be0bb 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -501,6 +501,12 @@ class Router
// Groups
//'list' has to be handled differently, as php will not allow a method to be named 'list'
+
+ $m->connect('api/statusnet/groups/timeline/:id.:format',
+ array('action' => 'ApiTimelineGroup',
+ 'id' => '[a-zA-Z0-9]+',
+ 'format' => '(xmljson|rss|atom)'));
+
$m->connect('api/statusnet/groups/list/:argument',
array('action' => 'api',
'method' => 'list_groups',
@@ -518,15 +524,6 @@ class Router
'apiaction' => 'statuses'),
array('method' => '(list_all|)(\.(atom|rss|xml|json))?'));
- $m->connect('api/statuses/:method/:argument',
- array('action' => 'api',
- 'apiaction' => 'statuses'),
- array('method' => '(user_timeline|home_timeline|friends_timeline|replies|mentions|show|destroy|friends|followers)'));
-
- $m->connect('api/statusnet/groups/:method/:argument',
- array('action' => 'api',
- 'apiaction' => 'groups'));
-
$m->connect('api/statusnet/groups/:method',
array('action' => 'api',
'apiaction' => 'groups'));