diff --git a/routes/api.php b/routes/api.php index d614942dc..78c263701 100644 --- a/routes/api.php +++ b/routes/api.php @@ -8,14 +8,6 @@ Route::post('/users/{username}/inbox', 'FederationController@userInbox'); 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'); }); }); diff --git a/routes/web.php b/routes/web.php index 0a5c36178..9183fc17a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -77,19 +77,20 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::get('nodeinfo/2.0.json', 'FederationController@nodeinfo'); Route::group(['prefix' => 'v1'], function () { - // 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/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}', 'PublicApiController@account'); - // Route::post('avatar/update', 'ApiController@avatarUpdate'); - // Route::get('likes', 'ApiController@hydrateLikes'); - // Route::post('media', 'ApiController@uploadMedia'); - // Route::delete('media', 'ApiController@deleteMedia'); - // Route::get('notifications', 'ApiController@notifications'); - // Route::get('timelines/public', 'PublicApiController@publicTimelineApi'); - // Route::get('timelines/home', 'PublicApiController@homeTimelineApi'); + Route::get('accounts/{id}', 'Api\ApiV1Controller@accountById'); + Route::post('avatar/update', 'ApiController@avatarUpdate'); + Route::get('likes', 'ApiController@hydrateLikes'); + Route::post('media', 'ApiController@uploadMedia'); + Route::delete('media', 'ApiController@deleteMedia'); + Route::get('notifications', 'ApiController@notifications'); + Route::get('timelines/public', 'PublicApiController@publicTimelineApi'); + Route::get('timelines/home', 'PublicApiController@homeTimelineApi'); }); Route::group(['prefix' => 'v2'], function() { Route::get('config', 'ApiController@siteConfiguration');