diff --git a/back/src/org/kar/karusic/api/HealthCheck.java b/back/src/org/kar/karusic/api/HealthCheck.java index 7e3ea9e..37021f9 100644 --- a/back/src/org/kar/karusic/api/HealthCheck.java +++ b/back/src/org/kar/karusic/api/HealthCheck.java @@ -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(); diff --git a/back/src/org/kar/karusic/api/TrackResource.java b/back/src/org/kar/karusic/api/TrackResource.java index 876841e..b56558c 100644 --- a/back/src/org/kar/karusic/api/TrackResource.java +++ b/back/src/org/kar/karusic/api/TrackResource.java @@ -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); }