response.header("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, OPTIONS");
...
...
@@ -87,6 +90,53 @@ public class SparkRest
returnnewGson().toJson(newStandardResponse(StatusResponse.SUCCESS,(circuitoService.circuitoExist(request.params(":id")))?"Circuito exists":"Circuito does not exists"));
returnnewGson().toJson(newStandardResponse(StatusResponse.SUCCESS,(usuarioService.usuarioExist(request.params(":id")))?"Usuario exists":"Usuario does not exists"));