Commit a84c4e35 authored by Evan Prodromou's avatar Evan Prodromou

add api/laconica for backwards compatibility

parent a21ca17f
......@@ -401,16 +401,22 @@ class Router
array('action' => 'api',
'apiaction' => 'statusnet'));
// For older methods, we provide "laconica" base action
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'
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',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment