From 9dc2234bacd73d7a173dfeb60153be16b348a799 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 20 Sep 2019 21:25:02 -0600 Subject: [PATCH] Update api routes --- routes/api.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 3a6a37c1..d614942d 100644 --- a/routes/api.php +++ b/routes/api.php @@ -4,4 +4,18 @@ use Illuminate\Http\Request; Route::post('/users/{username}/inbox', 'FederationController@userInbox'); -Route::post('/api/v1/apps', 'Api\ApiV1Controller@apps'); + +Route::group(['prefix' => 'api'], function() { + Route::group(['prefix' => 'v1'], function() { + Route::post('apps', 'Api\ApiV1Controller@apps'); + + Route::get('accounts/verify_credentials', 'ApiController@verifyCredentials'); + Route::get('accounts/relationships', 'PublicApiController@relationships'); + Route::get('accounts/{id}/statuses', 'PublicApiController@accountStatuses'); + Route::get('accounts/{id}/following', 'PublicApiController@accountFollowing'); + Route::get('accounts/{id}/followers', 'PublicApiController@accountFollowers'); + Route::get('accounts/{id}', 'Api\ApiV1Controller@accountById'); + + Route::get('instance', 'Api\ApiV1Controller@instance'); + }); +});