diff options
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; } |