diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-10-12 23:36:33 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-10-12 23:38:16 -0400 |
commit | f79dbaf9a76c10969dbc45fd43a0bb26f5f64ed4 (patch) | |
tree | 86cd49113d42a381825afe902383bc4568dd46d7 /lib | |
parent | 5f81f6119be8ec0a100cefcaa6f886d16f3be5c5 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/router.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php index eebe2beea..54d3d0f68 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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)')); |