commit
a7b20b51e8
@ -4,14 +4,12 @@ import fr.organizee.model.Mail;
|
|||||||
import fr.organizee.service.SendMailService;
|
import fr.organizee.service.SendMailService;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import javax.mail.MessagingException;
|
import javax.mail.MessagingException;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
|
@CrossOrigin("*")
|
||||||
@RequestMapping("/sendmail")
|
@RequestMapping("/sendmail")
|
||||||
public class MailController {
|
public class MailController {
|
||||||
SendMailService service;
|
SendMailService service;
|
||||||
|
Loading…
Reference in New Issue
Block a user