dev use authtoken
Test Workflow / test (push) Successful in 7s

This commit is contained in:
vladp
2026-02-24 11:41:02 +07:00
parent 5460d91a6f
commit c81a8c8d65
@@ -112,7 +112,7 @@ public class PayoutController {
/* /*
Get payout by id Get payout by id
*/ */
@GetMapping("/payout-method") @GetMapping("user/payout-methods")
public ResponseEntity<List<PayoutMethodDTO>> getUserMethods(@RequestHeader("Authorization") String tokenHeader) { public ResponseEntity<List<PayoutMethodDTO>> getUserMethods(@RequestHeader("Authorization") String tokenHeader) {
String token = tokenHeader.replace("Bearer ", ""); String token = tokenHeader.replace("Bearer ", "");
@@ -128,7 +128,7 @@ public class PayoutController {
/* /*
Get payout-methods Get payout-methods
*/ */
@GetMapping("/payout-method") @GetMapping("/payout-methods")
public ResponseEntity<List<PayoutMethodTypeDTO>> getAvailableMethodTypes() { public ResponseEntity<List<PayoutMethodTypeDTO>> getAvailableMethodTypes() {
List<PayoutMethodTypeDTO> types = Arrays.stream(PayoutType.values()) List<PayoutMethodTypeDTO> types = Arrays.stream(PayoutType.values())
.map(type -> PayoutMethodTypeDTO.builder() .map(type -> PayoutMethodTypeDTO.builder()