diff options
author | Evan Prodromou <evan@status.net> | 2010-12-09 13:11:02 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-12-09 13:11:02 -0500 |
commit | 11a0bde4595d2779b2587398c4b69bfcee116880 (patch) | |
tree | 2d150255384657a13f923087e6a1eb105c641627 /lib/router.php | |
parent | 2f2c47eca98d493b18eaf9f70fee56c762865f89 (diff) |
AtomPub for single subscription
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/lib/router.php b/lib/router.php index ca895c8bb..4e718f132 100644 --- a/lib/router.php +++ b/lib/router.php @@ -761,13 +761,6 @@ class Router $m->connect('api/oauth/authorize', array('action' => 'ApiOauthAuthorize')); - $m->connect('api/statusnet/app/service/:id.xml', - array('action' => 'ApiAtomService', - 'id' => Nickname::DISPLAY_FMT)); - - $m->connect('api/statusnet/app/service.xml', - array('action' => 'ApiAtomService')); - // Admin $m->connect('admin/site', array('action' => 'siteadminpanel')); @@ -909,6 +902,20 @@ class Router array('nickname' => Nickname::DISPLAY_FMT)); } + // AtomPub API + + $m->connect('api/statusnet/app/service/:id.xml', + array('action' => 'ApiAtomService', + 'id' => Nickname::DISPLAY_FMT)); + + $m->connect('api/statusnet/app/service.xml', + array('action' => 'ApiAtomService')); + + $m->connect('api/statusnet/app/subscriptions/:subscriber/:subscribed.atom', + array('action' => 'AtomPubShowSubscription'), + array('subscriber' => '[0-9]+', + 'subscribed' => '[0-9]+')); + // user stuff Event::handle('RouterInitialized', array($m)); |