@@ -112,7 +112,7 @@ public class PayoutController {
|
||||
/*
|
||||
Get payout by id
|
||||
*/
|
||||
@GetMapping("/payout-method")
|
||||
@GetMapping("user/payout-methods")
|
||||
public ResponseEntity<List<PayoutMethodDTO>> getUserMethods(@RequestHeader("Authorization") String tokenHeader) {
|
||||
String token = tokenHeader.replace("Bearer ", "");
|
||||
|
||||
@@ -128,7 +128,7 @@ public class PayoutController {
|
||||
/*
|
||||
Get payout-methods
|
||||
*/
|
||||
@GetMapping("/payout-method")
|
||||
@GetMapping("/payout-methods")
|
||||
public ResponseEntity<List<PayoutMethodTypeDTO>> getAvailableMethodTypes() {
|
||||
List<PayoutMethodTypeDTO> types = Arrays.stream(PayoutType.values())
|
||||
.map(type -> PayoutMethodTypeDTO.builder()
|
||||
|
||||
Reference in New Issue
Block a user