diff options
author | Zach Copley <zach@status.net> | 2010-03-15 22:10:32 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-15 22:16:33 +0000 |
commit | 40cde2f7109cace8f37cd36c31420c38ad475d40 (patch) | |
tree | fb0292d65637c7a25b3a20b06b77c3bdf3fd897c /lib/router.php | |
parent | cb471e0c96143c780c14e0864d70879a6308206e (diff) |
Initial Twitpic-like media upload endpoint /api/statusnet/media/upload
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 6 |
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')); |