summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-08-03 22:47:57 +0000
committerZach Copley <zach@controlyourself.ca>2009-08-03 22:47:57 +0000
commitdccd4aa68d7ae449434c63380f21d8070913778f (patch)
tree1a25d40f20326047eb0776f910e155362e8e33cb /lib/router.php
parent981fa1b33a8073bd0d53d8bee7dfccd171685e61 (diff)
parentff6e976d0315c57fc5b7e31845e9a3bad4f095bc (diff)
Merge branch '0.8.x' into twitter-oauth
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php15
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;
}