diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 5f601d4d6..e5712bb4b 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -2696,8 +2696,7 @@ class ApiV1Controller extends Controller return $this->json($ids); } - - /** + /** * GET /api/v1/preferences * * @@ -2717,4 +2716,17 @@ class ApiV1Controller extends Controller 'reading:expand:spoilers' => false ]); } + + /** + * GET /api/v1/trends + * + * + * @return array + */ + public function getTrends(Request $request) + { + abort_if(!$request->user(), 403); + + return $this->json([]); + } } diff --git a/routes/api.php b/routes/api.php index 0205df0b2..823b186a0 100644 --- a/routes/api.php +++ b/routes/api.php @@ -85,6 +85,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) { Route::get('discover/posts', 'Api\ApiV1Controller@discoverPosts')->middleware($middleware); Route::get('preferences', 'Api\ApiV1Controller@getPreferences')->middleware($middleware); + Route::get('trends', 'Api\ApiV1Controller@getTrends')->middleware($middleware); }); Route::group(['prefix' => 'v2'], function() use($middleware) {