Print final result
This commit is contained in:
parent
6951f4ad56
commit
47508c765c
@ -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) -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user