Skip to content

Commit

Permalink
サーバー側でURLを生成し、返却するように修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya0819 committed Aug 29, 2024
1 parent 34d7500 commit 31faf30
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 31faf30

Please sign in to comment.