@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user