summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-17 17:09:54 -0800
committerBrion Vibber <brion@pobox.com>2010-12-17 17:10:52 -0800
commitfb8312ebf4537033077917d0003f716206d0d23d (patch)
tree0dafba093ab5ed957db21916037d411e22bc17e8 /lib/router.php
parent3a831ff811daf2911fa4a14e1015d63e4451a2ab (diff)
Ticket #2959: implement api/users/profile_image endpoint in Twitter-compat API
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index b8a9db223..9cd28a394 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -524,6 +524,11 @@ class Router
'id' => Nickname::INPUT_FMT,
'format' => '(xml|json)'));
+ $m->connect('api/users/profile_image/:screen_name.:format',
+ array('action' => 'ApiUserProfileImage',
+ 'screen_name' => Nickname::DISPLAY_FMT,
+ 'format' => '(xml|json)'));
+
// direct messages
$m->connect('api/direct_messages.:format',