package com.rinha.backend.controller; import com.rinha.backend.model.PaymentModel; import com.rinha.backend.service.PaymentService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/payments") public class PaymentController { private final PaymentService paymentService; public PaymentController(PaymentService paymentService) { this.paymentService = paymentService; } @PostMapping public ResponseEntity post(@RequestBody PaymentModel paymentModel){ //System.out.println(paymentModel.getCorrelationId()); paymentService.addQueue(paymentModel); return ResponseEntity.ok().build(); } }