From d461e2ff23a70ad70b1cc4e7c422041e3e09ce8b Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 17 Jul 2008 20:23:24 -0400 Subject: [PATCH] Twitter-compatible API - updated rewrite rules to support /statuses/user_timeline darcs-hash:20080718002324-ca946-6b30ea6e3941b0f1278712edc02d9eeef00a3cc2.gz --- htaccess.sample | 1 + 1 file changed, 1 insertion(+) 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] -- 2.39.5