diff options
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 94262fa..676d7e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,12 @@ fn index() -> &'static str { #[post("/search", format = "application/json", data = "<data>")] fn search(data : Json<Search>, config: State<Config>) -> Json<SearchResponse> { - + debug!("handling search request: {:?}", data.0); + Json( + SearchResponse( + *config.all_aliases() + ) + ) } #[post("/query", format = "application/json", data = "<data>")] |