Implements the search part

This commit is contained in:
2016-01-26 12:31:03 +01:00
parent 5f2208839d
commit f6a884b188
6 changed files with 100 additions and 15 deletions

View File

@@ -34,7 +34,6 @@ func (a *appData) buildRouter() http.Handler {
bleve_http.RegisterIndexName("album", a.index)
searchHandler := bleve_http.NewSearchHandler("album")
router.POST("/api/search", narco.EndChain(ch,
narco.HandlerFunc(func(_ context.Context, w http.ResponseWriter, req *http.Request, _ httprouter.Params) {
searchHandler.ServeHTTP(w, req)