diff options
author | Evan Prodromou <evan@status.net> | 2010-10-13 15:18:33 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-10-13 15:18:33 -0400 |
commit | 07963a2a1061b8904c7c4df338c6e828ad6d8c40 (patch) | |
tree | e44cffd868ad32a9bad1553e2bedf505734d7262 /lib/router.php | |
parent | 4580d6065cb6917f356d86693689e429f21d01f7 (diff) | |
parent | f79dbaf9a76c10969dbc45fd43a0bb26f5f64ed4 (diff) |
Merge remote branch 'gitorious/1.0.x' into 1.0.x
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php index 86f4fa02a..c5c0b6a1b 100644 --- a/lib/router.php +++ b/lib/router.php @@ -278,7 +278,7 @@ class Router $m->connect('group/new', array('action' => 'newgroup')); - foreach (array('edit', 'join', 'leave') as $v) { + foreach (array('edit', 'join', 'leave', 'delete') as $v) { $m->connect('group/:nickname/'.$v, array('action' => $v.'group'), array('nickname' => '[a-zA-Z0-9]+')); @@ -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)')); |