Add log request
This commit is contained in:
parent
8314a770f1
commit
6951f4ad56
@ -20,6 +20,7 @@ public class App {
|
|||||||
get("/search", (req, res) -> {
|
get("/search", (req, res) -> {
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
String[] words = req.queryParams("s").split("/+");
|
String[] words = req.queryParams("s").split("/+");
|
||||||
|
System.out.println("Request : " + req.queryParams("s"));
|
||||||
ArrayList<Result> results = getResults(words);
|
ArrayList<Result> results = getResults(words);
|
||||||
return gson.toJson(results);
|
return gson.toJson(results);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user