forked from GNUsocial/gnu-social
		
	Route and stub for new friendships/show API method
This commit is contained in:
		| @@ -160,4 +160,18 @@ class TwitapifriendshipsAction extends TwitterapiAction | ||||
|  | ||||
|     } | ||||
|  | ||||
|     function show($args, $apidata) | ||||
|     { | ||||
|  | ||||
|         parent::handle($args); | ||||
|  | ||||
|         if (!in_array($apidata['content-type'], array('xml', 'json'))) { | ||||
|             $this->clientError(_('API method not found!'), $code = 404); | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         print "gar"; | ||||
|  | ||||
|     } | ||||
|  | ||||
| } | ||||
| @@ -317,7 +317,7 @@ class Router | ||||
|         $m->connect('api/friendships/:method', | ||||
|                     array('action' => 'api', | ||||
|                           'apiaction' => 'friendships'), | ||||
|                     array('method' => 'exists(\.(xml|json))')); | ||||
|                     array('method' => '(show|exists)(\.(xml|json))')); | ||||
|  | ||||
|         // Social graph | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user