diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-08-03 22:47:57 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-08-03 22:47:57 +0000 |
commit | dccd4aa68d7ae449434c63380f21d8070913778f (patch) | |
tree | 1a25d40f20326047eb0776f910e155362e8e33cb /lib/router.php | |
parent | 981fa1b33a8073bd0d53d8bee7dfccd171685e61 (diff) | |
parent | ff6e976d0315c57fc5b7e31845e9a3bad4f095bc (diff) |
Merge branch '0.8.x' into twitter-oauth
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/router.php b/lib/router.php index 582dfae6d..6651773c0 100644 --- a/lib/router.php +++ b/lib/router.php @@ -117,6 +117,16 @@ class Router $m->connect('main/tagother/:id', array('action' => 'tagother')); + $m->connect('main/oembed.xml', + array('action' => 'api', + 'method' => 'oembed.xml', + 'apiaction' => 'oembed')); + + $m->connect('main/oembed.json', + array('action' => 'api', + 'method' => 'oembed.json', + 'apiaction' => 'oembed')); + // these take a code foreach (array('register', 'confirmaddress', 'recoverpassword') as $c) { @@ -479,11 +489,6 @@ class Router Event::handle('RouterInitialized', array($m)); - $m->connect('main/:method', - array('action' => 'api', - 'method' => 'oembed(.xml|.json)?', - 'apiaction' => 'oembed')); - return $m; } |