You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package in.gov.chennaicorporation.gccoffice.callcenter.controller;
import org.springframework.beans.factory.annotation.Autowired;import org.springframework.http.ResponseEntity;import org.springframework.web.bind.annotation.PostMapping;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestParam;import org.springframework.web.bind.annotation.RestController;
import in.gov.chennaicorporation.gccoffice.callcenter.service.WhatsappMsgService;
@RestController@RequestMapping("/gcc/api/whatsapp")public class WhatsappController {
@Autowired private WhatsappMsgService whatsappMsgService;
@PostMapping("/send-whatsapp-message") public ResponseEntity<String> sendWhatsAppMessage(@RequestParam String msgUrl) { String response = whatsappMsgService.sendMsg(msgUrl); return ResponseEntity.ok(response); }
}
|