add atompub membership actions to router

This commit is contained in:
Evan Prodromou 2010-12-13 12:40:01 -05:00
parent 30f0defcf1
commit 4b7a0d366c

View File

@ -929,6 +929,15 @@ class Router
array('action' => 'AtomPubFavoriteFeed'),
array('profile' => '[0-9]+'));
$m->connect('api/statusnet/app/memberships/:profile/:group.atom',
array('action' => 'AtomPubShowMembership'),
array('profile' => '[0-9]+',
'group' => '[0-9]+'));
$m->connect('api/statusnet/app/membership/:profile.atom',
array('action' => 'AtomPubMembershipFeed'),
array('profile' => '[0-9]+'));
// user stuff
Event::handle('RouterInitialized', array($m));