summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-15 22:10:32 +0000
committerZach Copley <zach@status.net>2010-03-15 22:16:33 +0000
commit40cde2f7109cace8f37cd36c31420c38ad475d40 (patch)
treefb0292d65637c7a25b3a20b06b77c3bdf3fd897c /lib/router.php
parentcb471e0c96143c780c14e0864d70879a6308206e (diff)
Initial Twitpic-like media upload endpoint /api/statusnet/media/upload
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index 706120e0b..a48ee875e 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -628,6 +628,12 @@ class Router
array('action' => 'ApiTimelineTag',
'format' => '(xmljson|rss|atom)'));
+ // media related
+ $m->connect(
+ 'api/statusnet/media/upload',
+ array('action' => 'ApiMediaUpload')
+ );
+
// search
$m->connect('api/search.atom', array('action' => 'twitapisearchatom'));
$m->connect('api/search.json', array('action' => 'twitapisearchjson'));