Skip to content

Commit

Permalink
Merge pull request #39 from GoteoFoundation/fix/user-invest-routes-co…
Browse files Browse the repository at this point in the history
…llision

Fix routes collision
  • Loading branch information
davidbeig authored Jul 24, 2024
2 parents 4ab6e6b + fc47007 commit 50025b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 50025b2

Please sign in to comment.