The argument formatting regexps are the third argument
This commit is contained in:
parent
3287ecc8d3
commit
9bb648739b
|
@ -138,28 +138,28 @@ class FavoritePlugin extends ActivityHandlerPlugin
|
||||||
|
|
||||||
// Favorites for API
|
// Favorites for API
|
||||||
$m->connect('api/favorites/create.:format',
|
$m->connect('api/favorites/create.:format',
|
||||||
array('action' => 'ApiFavoriteCreate',
|
array('action' => 'ApiFavoriteCreate'),
|
||||||
'format' => '(xml|json)'));
|
array('format' => '(xml|json)'));
|
||||||
$m->connect('api/favorites/destroy.:format',
|
$m->connect('api/favorites/destroy.:format',
|
||||||
array('action' => 'ApiFavoriteDestroy',
|
array('action' => 'ApiFavoriteDestroy'),
|
||||||
'format' => '(xml|json)'));
|
array('format' => '(xml|json)'));
|
||||||
$m->connect('api/favorites/list.:format',
|
$m->connect('api/favorites/list.:format',
|
||||||
array('action' => 'ApiTimelineFavorites',
|
array('action' => 'ApiTimelineFavorites'),
|
||||||
'format' => '(xml|json|rss|atom|as)'));
|
array('format' => '(xml|json|rss|atom|as)'));
|
||||||
$m->connect('api/favorites/:id.:format',
|
$m->connect('api/favorites/:id.:format',
|
||||||
array('action' => 'ApiTimelineFavorites',
|
array('action' => 'ApiTimelineFavorites'),
|
||||||
'id' => Nickname::INPUT_FMT,
|
array('id' => Nickname::INPUT_FMT,
|
||||||
'format' => '(xml|json|rss|atom|as)'));
|
'format' => '(xml|json|rss|atom|as)'));
|
||||||
$m->connect('api/favorites.:format',
|
$m->connect('api/favorites.:format',
|
||||||
array('action' => 'ApiTimelineFavorites',
|
array('action' => 'ApiTimelineFavorites'),
|
||||||
'format' => '(xml|json|rss|atom|as)'));
|
array('format' => '(xml|json|rss|atom|as)'));
|
||||||
$m->connect('api/favorites/create/:id.:format',
|
$m->connect('api/favorites/create/:id.:format',
|
||||||
array('action' => 'ApiFavoriteCreate',
|
array('action' => 'ApiFavoriteCreate'),
|
||||||
'id' => '[0-9]+',
|
array('id' => '[0-9]+',
|
||||||
'format' => '(xml|json)'));
|
'format' => '(xml|json)'));
|
||||||
$m->connect('api/favorites/destroy/:id.:format',
|
$m->connect('api/favorites/destroy/:id.:format',
|
||||||
array('action' => 'ApiFavoriteDestroy',
|
array('action' => 'ApiFavoriteDestroy'),
|
||||||
'id' => '[0-9]+',
|
array('id' => '[0-9]+',
|
||||||
'format' => '(xml|json)'));
|
'format' => '(xml|json)'));
|
||||||
|
|
||||||
// AtomPub API
|
// AtomPub API
|
||||||
|
@ -174,8 +174,8 @@ class FavoritePlugin extends ActivityHandlerPlugin
|
||||||
|
|
||||||
// Required for qvitter API
|
// Required for qvitter API
|
||||||
$m->connect('api/statuses/favs/:id.:format',
|
$m->connect('api/statuses/favs/:id.:format',
|
||||||
array('action' => 'ApiStatusesFavs',
|
array('action' => 'ApiStatusesFavs'),
|
||||||
'id' => '[0-9]+',
|
array('id' => '[0-9]+',
|
||||||
'format' => '(xml|json)'));
|
'format' => '(xml|json)'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user