diff --git a/src/Controller/HomeController.php b/src/Controller/HomeController.php index 788d59d..4609ef0 100644 --- a/src/Controller/HomeController.php +++ b/src/Controller/HomeController.php @@ -56,14 +56,14 @@ public function userInvests(GetUserInvestsUseCase $useCase): Response } #[Route('/userInvestedToReward/{reward_id}', name: 'userInvestedToReward')] - public function userInvestedToReward(Request $request, int $reward_id, GetUserInvestedToRewardUseCase $useCase): Response + public function userInvestedToReward(int $reward_id, GetUserInvestedToRewardUseCase $useCase): Response { $response = $useCase->execute($reward_id, $this->getUser()->getUserIdentifier()); return $this->json($response); } - #[Route('/userActiveInvestedToReward/{reward_id}', name: 'userInvestedToReward')] + #[Route('/userActiveInvestedToReward/{reward_id}', name: 'userActiveInvestedToReward')] public function userActiveInvestInReward(int $reward_id, GetUserActiveInvestedRewardUseCase $useCase): Response { $response = $useCase->execute($reward_id, $this->getUser()->getUserIdentifier());