Add /api/v1/accounts/{id}/lists endpoint

This commit is contained in:
Daniel Supernault 2019-09-25 22:12:39 -06:00
parent 2a106c4e12
commit dba172dfe7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 16 additions and 0 deletions

View file

@ -859,6 +859,20 @@ class ApiV1Controller extends Controller
return response()->json([]);
}
/**
* GET /api/v1/accounts/{id}/lists
*
* @param integer $id
*
* @return null
*/
public function accountListsById(Request $request, $id)
{
abort_if(!$request->user(), 403);
return response()->json([]);
}
public function statusById(Request $request, $id)
{
$status = Status::whereVisibility('public')->findOrFail($id);

View file

@ -108,6 +108,8 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
Route::post('follow_requests/{id}/reject', 'Api\ApiV1Controller@accountFollowRequestReject')->middleware('auth:api');
Route::get('suggestions', 'Api\ApiV1Controller@accountSuggestions')->middleware('auth:api');
Route::get('lists', 'Api\ApiV1Controller@accountLists')->middleware('auth:api');
Route::get('accounts/{id}/lists', 'Api\ApiV1Controller@accountListsById')->middleware('auth:api');
Route::get('lists/{id}/accounts', 'Api\ApiV1Controller@accountListsById')->middleware('auth:api');
Route::get('likes', 'ApiController@hydrateLikes');
Route::post('media', 'ApiController@uploadMedia')->middleware('auth:api');