[DEBUG] correct health check
This commit is contained in:
parent
fd6de65759
commit
8ff1b4b742
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user