From 8ff1b4b742104aefb697125809d3a2e112721a6a Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 29 Jan 2023 23:11:57 +0100 Subject: [PATCH] [DEBUG] correct health check --- back/src/org/kar/karusic/api/HealthCheck.java | 2 +- back/src/org/kar/karusic/api/TrackResource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }