summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-12-10 18:50:50 -0500
committerEvan Prodromou <evan@status.net>2010-12-10 18:50:50 -0500
commit37c447be4637dc639f586846d35e14a4bfce069d (patch)
treebd8a32d7138c4211c089fc10e887866316f5cf2c /lib
parent167f760ab8c0b80652a1aab88a88fd207091d714 (diff)
Show a single favorite for AtomPub
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 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));