From 82d1ca14bbcf113eeae5bdd0d9eece9be327fc16 Mon Sep 17 00:00:00 2001 From: Wv5twkFEKh54vo4tta9yu7dHa3 <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com> Date: Wed, 15 Dec 2021 11:56:42 +0100 Subject: [PATCH] Add discover to routes --- routes/api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/api.php b/routes/api.php index 02dd65062..fdcb0d4b0 100644 --- a/routes/api.php +++ b/routes/api.php @@ -79,8 +79,9 @@ Route::group(['prefix' => 'api'], function() use($middleware) { Route::get('timelines/home', 'Api\ApiV1Controller@timelineHome')->middleware($middleware); Route::get('timelines/public', 'Api\ApiV1Controller@timelinePublic')->middleware($middleware); - Route::get('timelines/tag/{hashtag}', 'Api\ApiV1Controller@timelineHashtag'); - }); + Route::get('timelines/tag/{hashtag}', 'Api\ApiV1Controller@timelineHashtag'); + Route::get('discover/posts', 'Api\ApiV1Controlle@discoverPosts')->middleware($middleware); + }); Route::group(['prefix' => 'v2'], function() use($middleware) { Route::get('search', 'Api\ApiV1Controller@searchV2')->middleware($middleware);