diff options
author | Evan Prodromou <evan@status.net> | 2010-12-10 18:50:50 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-12-10 18:50:50 -0500 |
commit | 37c447be4637dc639f586846d35e14a4bfce069d (patch) | |
tree | bd8a32d7138c4211c089fc10e887866316f5cf2c /lib/router.php | |
parent | 167f760ab8c0b80652a1aab88a88fd207091d714 (diff) |
Show a single favorite for AtomPub
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php index b20336164..0ced86f34 100644 --- a/lib/router.php +++ b/lib/router.php @@ -920,6 +920,15 @@ class Router array('action' => 'AtomPubSubscriptionFeed'), array('subscriber' => '[0-9]+')); + $m->connect('api/statusnet/app/favorites/:profile/:notice.atom', + array('action' => 'AtomPubShowFavorite'), + array('profile' => '[0-9]+', + 'notice' => '[0-9]+')); + + $m->connect('api/statusnet/app/favorites/:profile.atom', + array('action' => 'AtomPubFavoriteFeed'), + array('profile' => '[0-9]+')); + // user stuff Event::handle('RouterInitialized', array($m)); |