forgot to remove the method

This commit is contained in:
markiantorno 2020-04-17 20:49:27 -04:00
parent 0db6635a75
commit 46922bac09
2 changed files with 1 additions and 15 deletions

View File

@ -24,6 +24,6 @@ public class RestEndpoints {
app.get("/context", myCliContextController::handleGetCurrentCliContext);
app.post("/context", myCliContextController::handleSetCurrentCliContext);
app.post("/validate", myValidationController.handleValidationRequest);
app.post("/validate", myValidationController::handleValidationRequest);
}
}

View File

@ -35,18 +35,4 @@ public class ValidationController {
ctx.status(HttpStatus.SC_INTERNAL_SERVER_ERROR).result(e.getLocalizedMessage());
}
}
public Handler handleValidationRequest = ctx -> {
ValidationRequest request = ctx.bodyAsClass(ValidationRequest.class);
ValidationResponse response = ValidationService.validateSources(request, myValidationEngine);
// File new temp file
// DeleteOnShutdown
ObjectMapper Obj = new ObjectMapper();
String jsonStr = Obj.writeValueAsString(response);
ctx.status(200).json(jsonStr);
};
}