From: Evan Prodromou Date: Thu, 27 Aug 2009 16:34:32 +0000 (-0700) Subject: add api/laconica for backwards compatibility X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a84c4e3518bb26a3cb39c9e998ecbd717fbf0d85;p=quix0rs-gnu-social.git add api/laconica for backwards compatibility --- diff --git a/lib/router.php b/lib/router.php index b25b1705f5..00e728f557 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',