forked from GNUsocial/gnu-social
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
This commit is contained in:
commit
7292c1aa78
@ -113,6 +113,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) {
|
||||
@ -475,11 +485,6 @@ class Router
|
||||
|
||||
Event::handle('RouterInitialized', array($m));
|
||||
|
||||
$m->connect('main/:method',
|
||||
array('action' => 'api',
|
||||
'method' => 'oembed(.xml|.json)?',
|
||||
'apiaction' => 'oembed'));
|
||||
|
||||
return $m;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user