Implements the search part
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user