More routes.
This commit is contained in:
parent
a90a8da5c3
commit
fa82722e5a
@ -133,6 +133,7 @@ class Router
|
|||||||
|
|
||||||
foreach (array('group', 'people', 'notice') as $s) {
|
foreach (array('group', 'people', 'notice') as $s) {
|
||||||
$m->connect('search/'.$s, array('action' => $s.'search'));
|
$m->connect('search/'.$s, array('action' => $s.'search'));
|
||||||
|
$m->connect('search/'.$s.'?q=:q', array('action' => $s.'search'), array('q' => '.+'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$m->connect('search/notice/rss', array('action' => 'noticesearchrss'));
|
$m->connect('search/notice/rss', array('action' => 'noticesearchrss'));
|
||||||
@ -140,6 +141,9 @@ class Router
|
|||||||
// notice
|
// notice
|
||||||
|
|
||||||
$m->connect('notice/new', array('action' => 'newnotice'));
|
$m->connect('notice/new', array('action' => 'newnotice'));
|
||||||
|
$m->connect('notice/new?replyto=:replyto',
|
||||||
|
array('action' => 'newnotice'),
|
||||||
|
array('replyto' => '[A-Za-z0-9_-]+'));
|
||||||
$m->connect('notice/:notice',
|
$m->connect('notice/:notice',
|
||||||
array('action' => 'shownotice'),
|
array('action' => 'shownotice'),
|
||||||
array('notice' => '[0-9]+'));
|
array('notice' => '[0-9]+'));
|
||||||
|
Loading…
Reference in New Issue
Block a user