|
@ -22,6 +22,7 @@ public class DiscordNewsController { |
|
|
@CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) |
|
|
@CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) |
|
|
public ResponseEntity createNews(@RequestBody Annonce annonce) { |
|
|
public ResponseEntity createNews(@RequestBody Annonce annonce) { |
|
|
annonce.setId(null); |
|
|
annonce.setId(null); |
|
|
|
|
|
annonce.setType("news"); |
|
|
annonceRepository.save(annonce); |
|
|
annonceRepository.save(annonce); |
|
|
return ResponseEntity.ok().body(null); |
|
|
return ResponseEntity.ok().body(null); |
|
|
} |
|
|
} |
|
|