diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-03-06 13:33:47 -0800 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-03-06 13:33:47 -0800 |
commit | b1f337fe018dd3910c68589a98b0242470743a4c (patch) | |
tree | 6e6faed106cec74535ace6f00b3e2499e8cb5e99 /lib/router.php | |
parent | 87e5badcb6e8d89e2c85e2bf4be3748b8cd5f940 (diff) |
First crack at Twitter-like JSON search results for the API
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 10 |
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, |