|
@@ -6,6 +6,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@RestController
|
|
@@ -14,8 +15,8 @@ public class AssetController {
|
|
|
|
|
|
private final AssetService assetService;
|
|
|
|
|
|
- @GetMapping("/asset/merchant/{merchantId}")
|
|
|
- public MerchantAssetDTO getMerchantAsset(@PathVariable("merchantId") Long merchantId) {
|
|
|
+ @GetMapping("/asset/merchant")
|
|
|
+ public MerchantAssetDTO getMerchantAsset(@RequestParam("merchantId") Long merchantId) {
|
|
|
return this.assetService.getMerchantAsset(merchantId);
|
|
|
}
|
|
|
}
|