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:
Craig Andrews
2010-10-12 23:36:33 -04:00
parent 5f81f6119b
commit f79dbaf9a7
4 changed files with 83 additions and 0 deletions

View File

@@ -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)'));