summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-12-13 12:40:01 -0500
committerEvan Prodromou <evan@status.net>2010-12-13 12:40:01 -0500
commit4b7a0d366ccc2da4c178ff0cff0f207732301a0a (patch)
tree0293ff0305b7b9f2394fd110ac6b5b145821f43b /lib
parent30f0defcf18df3fbcc6a8d333e00f5a0a8389275 (diff)
add atompub membership actions to router
Diffstat (limited to 'lib')
-rw-r--r--lib/router.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index 0ced86f34..e05fa096d 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -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));