forked from GNUsocial/gnu-social
Add a doc page that links to the StatusNet wiki API page
Add a redirect action that merely redirects to another action Redirect /api to /doc/api so users don't get the "lame" "No such user" error message
This commit is contained in:
@@ -322,6 +322,11 @@ class Router
|
||||
|
||||
// statuses API
|
||||
|
||||
$m->connect('api',
|
||||
array('action' => 'Redirect',
|
||||
'nextAction' => 'doc',
|
||||
'args' => array('title' => 'api')));
|
||||
|
||||
$m->connect('api/statuses/public_timeline.:format',
|
||||
array('action' => 'ApiTimelinePublic',
|
||||
'format' => '(xml|json|rss|atom)'));
|
||||
|
Reference in New Issue
Block a user