commit to merge

This commit is contained in:
Sana EL HIRI 2022-02-24 15:01:56 +01:00
parent a91c4f652e
commit e7d0757d49

View file

@ -41,7 +41,7 @@ public class MembreController {
{ {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("<h1>Affichages des membres</h1>"); sb.append("<h1>Affichages des membres</h1>");
sb.append("<ul><li><a href='http://localhost:8080/membres/all'>Liste des <strong>membres</strong></a></li>"); sb.append("<ul><li><a href='http://localhost:8088/membres/all'>Liste des <strong>membres</strong></a></li>");
return sb.toString(); return sb.toString();
} }
@ -160,7 +160,7 @@ public class MembreController {
membreRepo.deleteById(id); membreRepo.deleteById(id);
return ResponseEntity.status(HttpStatus.OK).body("Membre supprimé !"); return ResponseEntity.status(HttpStatus.OK).body("Membre supprimé !");
} catch (Exception e) { } catch (Exception e) {
MembreNotFoundException membreNotFoundException = new membreNotFoundException(id); MembreNotFoundException membreNotFoundException = new MembreNotFoundException(id);
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(membreNotFoundException.getMessage()); return ResponseEntity.status(HttpStatus.NOT_FOUND).body(membreNotFoundException.getMessage());
} }
} }