diff --git a/backend/app/Http/Controllers/Api/PressRelease/RecommendController.php b/backend/app/Http/Controllers/Api/PressRelease/RecommendController.php index 279e526..672e2c8 100644 --- a/backend/app/Http/Controllers/Api/PressRelease/RecommendController.php +++ b/backend/app/Http/Controllers/Api/PressRelease/RecommendController.php @@ -41,9 +41,15 @@ public function __invoke(Request $request): JsonResponse /* @var PressRelease $press_release */ return [ - "id" => $press_release->id, "title" => $press_release->title, - "summary" => $press_release->summary + "summary" => $press_release->summary, + "url" => route( + "press-release.redirect", + [ + "company_id" => $press_release->company_id, + "release_id" => $press_release->release_id + ] + ) ]; }) ->toArray()