Skip to content

Commit 78d31fc

Browse files
committed
refactor : wallet api 수정
1 parent e20a305 commit 78d31fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/prgrms/kdtspringdemo/wallet/controller/WalletWebController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public String viewWallet(@PathVariable UUID walletId, Model model) {
4646
return "wallet_details";
4747
}
4848

49-
@PostMapping("/{walletId}/addVoucher")
49+
@PostMapping("/{walletId}/add-voucher")
5050
public String addVoucherToWallet(
5151
@PathVariable UUID walletId,
5252
@ModelAttribute AddVoucherToWalletDto addVoucherToWalletDto) {

src/main/resources/templates/wallet_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1 class="mt-5">Wallet Details</h1>
5656
</table>
5757

5858
<h2>Add Voucher to Wallet</h2>
59-
<form th:action="@{'/wallets/' + ${walletId} + '/addVoucher'}" method="post" th:object="${addVoucherToWalletDto}">
59+
<form th:action="@{'/wallets/' + ${walletId} + '/add-voucher'}" method="post" th:object="${addVoucherToWalletDto}">
6060
<div class="form-group">
6161
<label for="selectedVoucherId">Select a Voucher</label>
6262
<select class="form-control" id="selectedVoucherId" name="selectedVoucherId">

0 commit comments

Comments
 (0)