summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-08-27 09:34:32 -0700
committerEvan Prodromou <evan@status.net>2009-08-27 09:34:32 -0700
commita84c4e3518bb26a3cb39c9e998ecbd717fbf0d85 (patch)
tree60ef2a70f394f6b39399b31453d8dfa9f87560c5 /lib/router.php
parenta21ca17f6895e9e090dc0c74018507c8b74108a4 (diff)
add api/laconica for backwards compatibility
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php
index b25b1705f..00e728f55 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -401,16 +401,22 @@ class Router
array('action' => 'api',
'apiaction' => 'statusnet'));
- $m->connect('api/statusnet/:method',
+ // For older methods, we provide "laconica" base action
+
+ $m->connect('api/laconica/:method',
array('action' => 'api',
'apiaction' => 'statusnet'));
+ // Groups and tags are newer than 0.8.1 so no backward-compatibility
+ // necessary
+
// Groups
//'list' has to be handled differently, as php will not allow a method to be named 'list'
$m->connect('api/statusnet/groups/list/:argument',
array('action' => 'api',
'method' => 'list_groups',
'apiaction' => 'groups'));
+
foreach (array('xml', 'json', 'rss', 'atom') as $e) {
$m->connect('api/statusnet/groups/list.' . $e,
array('action' => 'api',