add laconica methods to unauthed ones

darcs-hash:20081230203747-84dde-dbdb783c8883097af0f69b4c06c2425c54964773.gz
This commit is contained in:
Evan Prodromou 2008-12-30 15:37:47 -05:00
parent a88770a269
commit 2047c68d71
5 changed files with 17 additions and 7 deletions

View File

@ -100,4 +100,6 @@ Evan Prodromou <evan@prodromou.name>**20081223195722]
[Laconica-specific extensions for Twitter API
Evan Prodromou <evan@prodromou.name>**20081230202019]
[add laconica-specific methods to htaccess.sample
Evan Prodromou <evan@prodromou.name>**20081230202513]
Evan Prodromou <evan@prodromou.name>**20081230202513]
[add laconica methods to unauthed ones
Evan Prodromou <evan@prodromou.name>**20081230203747]

View File

@ -117,7 +117,10 @@ class ApiAction extends Action
'statuses/show',
'users/show',
'help/test',
'help/downtime_schedule');
'help/downtime_schedule',
'laconica/version',
'laconica/config',
'laconica/wadl');
static $bareauth = array('statuses/user_timeline',
'statuses/friends',

View File

@ -1,4 +1,6 @@
hunk ./htaccess.sample 146
+RewriteRule ^api/laconica/version(.*)$ index.php?action=api&apiaction=laconica&method=version$1 [L,QSA]
+RewriteRule ^api/laconica/config(.*)$ index.php?action=api&apiaction=laconica&method=config$1 [L,QSA]
+RewriteRule ^api/laconica/wadl\.xml$ index.php?action=api&apiaction=laconica&method=wadl.xml [L,QSA]
hunk ./actions/api.php 120
- 'help/downtime_schedule');
+ 'help/downtime_schedule',
+ 'laconica/version',
+ 'laconica/config',
+ 'laconica/wadl');

View File

@ -117,7 +117,10 @@ class ApiAction extends Action
'statuses/show',
'users/show',
'help/test',
'help/downtime_schedule');
'help/downtime_schedule',
'laconica/version',
'laconica/config',
'laconica/wadl');
static $bareauth = array('statuses/user_timeline',
'statuses/friends',