Skip to content

Commit

Permalink
Removed slashes from routes
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Nov 2, 2023
1 parent 39dfd36 commit e8e8408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Deals/DealsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function edit(int $id, #[MapRequestPayload] EditDealRequestDTO $dto, #[Cu
return $this->json(['success' => true]);
}

#[Route('/deals/sell/', name: 'app_deals_deals_sell', methods: ['POST'])]
#[Route('/deals/sell', name: 'app_deals_deals_sell', methods: ['POST'])]
public function sell(#[MapRequestPayload] SellDealRequestDTO $dto, #[CurrentUser] ?User $user): JsonResponse
{
if ($dto->id) {
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/DepositAccountsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function index(#[CurrentUser] ?User $user): JsonResponse
return $this->json(['items' => $accounts]);
}

#[Route('/deposits/accounts/create/', name: 'app_deposit_accounts_create', methods: ['POST'])]
#[Route('/deposits/accounts/create', name: 'app_deposit_accounts_create', methods: ['POST'])]
public function create(#[CurrentUser] ?User $user, #[MapRequestPayload] CreateAccountRequestDTO $dto): JsonResponse
{
$account = new DepositAccount($dto->name, $user);
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/DepositsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function index(#[CurrentUser] ?User $user): JsonResponse
}


#[Route('/deposits/create/', name: 'app_deposits_create', methods: ['POST'])]
#[Route('/deposits/create', name: 'app_deposits_create', methods: ['POST'])]
public function create(#[CurrentUser] ?User $user, #[MapRequestPayload] CreateDepositRequestDTO $dto): JsonResponse
{
$account = $this->entityManager->getRepository(DepositAccount::class)->findOneBy(['user' => $user, 'id' => $dto->accountId]);
Expand Down

0 comments on commit e8e8408

Please sign in to comment.