Zusätzliche logs eingefügt
This commit is contained in:
@@ -38,6 +38,9 @@ public class FileProcessingResource {
|
||||
@POST
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response triggerProcessing(@HeaderParam("X-Api-Key") String apiKey) {
|
||||
//Log.infof("API-key correct: %s", config.api().key());
|
||||
//Log.infof("API-key received: %s", apiKey);
|
||||
|
||||
if (apiKey == null || !config.api().key().equals(apiKey)) {
|
||||
Log.warn("Trigger abgelehnt — ungültiger oder fehlender API-Key");
|
||||
return Response.status(Response.Status.UNAUTHORIZED).build();
|
||||
|
||||
Reference in New Issue
Block a user