Print final result

This commit is contained in:
Mathieu Sanchez 2019-06-12 22:09:35 +09:00
parent 6951f4ad56
commit 47508c765c

View File

@ -22,7 +22,10 @@ public class App {
String[] words = req.queryParams("s").split("/+"); String[] words = req.queryParams("s").split("/+");
System.out.println("Request : " + req.queryParams("s")); System.out.println("Request : " + req.queryParams("s"));
ArrayList<Result> results = getResults(words); ArrayList<Result> results = getResults(words);
return gson.toJson(results); String json = gson.toJson(results);
System.out.println(json);
return json;
}); });
options("/*", options("/*",
(request, response) -> { (request, response) -> {