[DEBUG] correct health check

This commit is contained in:
Edouard DUPIN 2023-01-29 23:11:57 +01:00
parent fd6de65759
commit 8ff1b4b742
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class HealthCheck {
@GET
@PermitAll
public Response getHealth() {
if (JWTWrapper.getPublicKey() == null) {
if (JWTWrapper.getPublicKeyJson() == null) {
return Response.status(500).entity(new HealthResult("Missing Jwt public token")).build();
}
return Response.status(200).entity(new HealthResult("alive and kicking")).build();

View File

@ -41,7 +41,7 @@ public class TrackResource {
@POST
@RolesAllowed("ADMIN")
@Consumes(MediaType.APPLICATION_JSON)
public Track put(String jsonRequest) throws Exception {
public Track create(String jsonRequest) throws Exception {
return SqlWrapper.insertWithJson(Track.class, jsonRequest);
}