From 79976a3f8143fd2f681ce3893538973f95f648ba Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 19 Sep 2022 00:31:28 -0600 Subject: [PATCH] Update api routes --- routes/api.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routes/api.php b/routes/api.php index 95c822562..cc147aff5 100644 --- a/routes/api.php +++ b/routes/api.php @@ -100,6 +100,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) { Route::group(['prefix' => 'v1.1'], function() use($middleware) { Route::post('report', 'Api\ApiV1Dot1Controller@report')->middleware($middleware); Route::delete('accounts/avatar', 'Api\ApiV1Dot1Controller@deleteAvatar')->middleware($middleware); + Route::get('accounts/{id}/posts', 'Api\ApiV1Dot1Controller@accountPosts')->middleware($middleware); Route::group(['prefix' => 'direct'], function () use($middleware) { Route::get('thread', 'DirectMessageController@thread')->middleware($middleware); @@ -116,8 +117,9 @@ Route::group(['prefix' => 'api'], function() use($middleware) { Route::get('recent', 'StoryController@recent')->middleware($middleware); }); - Route::group(['prefix' => 'compose/v0'], function () use($middleware) { - Route::get('/search/location', 'ComposeController@searchLocation')->middleware($middleware); + Route::group(['prefix' => 'compose'], function () use($middleware) { + Route::get('search/location', 'ComposeController@searchLocation')->middleware($middleware); + Route::get('settings', 'ComposeController@composeSettings')->middleware($middleware); }); Route::group(['prefix' => 'discover'], function () use($middleware) {