summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/router.php b/lib/router.php
index 41c376a72..516b48122 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -354,17 +354,13 @@ class Router
// search
-
- foreach (array('json', 'atom') as $e) {
- $m->connect('api/search.'.$e,
- array('action' => 'twitapisearch'));
- }
-
+ $m->connect('api/search.atom', array('action' => 'twitapisearchatom'));
+ $m->connect('api/search.json', array('action' => 'twitapisearchjson'));
$m->connect('api/trends.json', array('action' => 'twitapitrends'));
// user stuff
- foreach (array('subscriptions', 'subscribers',
+ foreach (array('subscriptions', 'subscribers',
'nudge', 'xrds', 'all', 'foaf',
'replies', 'inbox', 'outbox', 'microsummary') as $a) {
$m->connect(':nickname/'.$a,