summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-08 15:45:45 -0700
committerZach Copley <zach@status.net>2009-10-08 15:45:45 -0700
commit62059fec832014411f604d9cc669b7d3201a60d5 (patch)
tree5a8b0272f5d11e0ffff70adf56a3ef3d28545de2 /lib/router.php
parent08de0f1ebdabdce561ce863bdec219a913e61d26 (diff)
New actions for statusnet config and version API methods
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/router.php b/lib/router.php
index 1ea5885da..3c50fb25e 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -486,15 +486,23 @@ class Router
// statusnet
- $m->connect('api/statusnet/:method',
- array('action' => 'api',
- 'apiaction' => 'statusnet'));
+ $m->connect('api/statusnet/version.:format',
+ array('action' => 'ApiStatusnetVersion',
+ 'format' => '(xml|json)'));
+
+ $m->connect('api/statusnet/config.:format',
+ array('action' => 'ApiStatusnetConfig',
+ 'format' => '(xml|json)'));
// For older methods, we provide "laconica" base action
- $m->connect('api/laconica/:method',
- array('action' => 'api',
- 'apiaction' => 'statusnet'));
+ $m->connect('api/laconica/version.:format',
+ array('action' => 'ApiStatusnetVersion',
+ 'format' => '(xml|json)'));
+
+ $m->connect('api/laconica/config.:format',
+ array('action' => 'ApiStatusnetConfig',
+ 'format' => '(xml|json)'));
// Groups and tags are newer than 0.8.1 so no backward-compatibility
// necessary