Skip to content

Commit

Permalink
[#205] Implement endpoint to get a allowedRejectMessage settings
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Oct 24, 2024
1 parent ed82801 commit 95b6602
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,9 @@ public void removeRecord(@PathVariable("key") String key) {
LOG.trace("Patient record {} successfully removed.", toRemove);
}
}

@GetMapping(value = "/allowedRejectMessage", produces = MediaType.APPLICATION_JSON_VALUE)
public boolean getAllowRejectMessageEnabled(){
return configReader.getConfig(ConfigParam.RECORDS_ALLOWED_REJECT_MESSAGE).equals("true");
}
}

0 comments on commit 95b6602

Please sign in to comment.