forgot to remove the method
This commit is contained in:
parent
0db6635a75
commit
46922bac09
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue