commit
a7b20b51e8
1 changed files with 2 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue