Merge pull request #44 from HediMjid/sana

ajout crossOrgins sur mail
This commit is contained in:
AlineRinquin 2022-02-26 13:00:09 +01:00 committed by GitHub
commit a7b20b51e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;