ajout crossOrgins sur mail

This commit is contained in:
Sana EL HIRI 2022-02-25 18:53:57 +01:00
parent 5c92159b53
commit c6e0aa036a

View File

@ -4,14 +4,12 @@ import fr.organizee.model.Mail;
import fr.organizee.service.SendMailService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.mail.MessagingException;
@RestController
@CrossOrigin("*")
@RequestMapping("/sendmail")
public class MailController {
SendMailService service;