From: zach Date: Fri, 18 Jul 2008 00:23:24 +0000 (-0400) Subject: Twitter-compatible API - updated rewrite rules to support /statuses/user_timeline X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d461e2ff23a70ad70b1cc4e7c422041e3e09ce8b;p=quix0rs-gnu-social.git Twitter-compatible API - updated rewrite rules to support /statuses/user_timeline darcs-hash:20080718002324-ca946-6b30ea6e3941b0f1278712edc02d9eeef00a3cc2.gz --- diff --git a/htaccess.sample b/htaccess.sample index 3954128e22..317ddef485 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -60,6 +60,7 @@ RewriteRule ^(\w+)$ index.php?action=showstream&nickname=$1 [L,QSA] # XXX: Surely these can be refactored a little -- Zach RewriteRule ^api/statuses/public_timeline(.*)$ index.php?action=api&apiaction=statuses&method=public_timeline$1 [L,QSA] RewriteRule ^api/statuses/friends_timeline(.*)$ index.php?action=api&apiaction=statuses&method=friends_timeline$1 [L,QSA] +RewriteRule ^api/statuses/user_timeline/(.*)$ index.php?action=api&apiaction=statuses&method=user_timeline&argument=$1 [L,QSA] RewriteRule ^api/statuses/user_timeline(.*)$ index.php?action=api&apiaction=statuses&method=user_timeline$1 [L,QSA] RewriteRule ^api/statuses/show/(.*)$ index.php?action=api&apiaction=statuses&method=show&argument=$1 [L,QSA] RewriteRule ^api/statuses/update(.*)$ index.php?action=api&apiaction=statuses&method=update$1 [L,QSA]