PLEASE WORK FOR FUCKS SAKE
This commit is contained in:
@@ -27,9 +27,14 @@ public class EmailController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/mail/send")
|
@PostMapping("/mail/send")
|
||||||
public ResponseEntity<String> send(@RequestBody Map<String, Object> payload){
|
public ResponseEntity<String> send(@RequestBody String payload) {
|
||||||
try {
|
try {
|
||||||
//service.send("laurent0206.cr@gmail.com", "Hello from board mate !", map);
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
|
||||||
|
Map<String, Object> map = mapper.readValue(payload, new TypeReference<Map<String, Object>>() {});
|
||||||
|
|
||||||
|
//service.send("laurent0206.cr@gmail.com", "Hello from Board Mate!", map);
|
||||||
|
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user