Add an 'enable' flag in the server configuration to enable gql-based searches

"extensions": {
        "search": {
            "enable": true
        }
    }
This commit is contained in:
Andrei Aaron
2021-06-08 21:37:31 +03:00
committed by Ramkumar Chinchani
parent c1dd7878e4
commit 792e82cbdf
10 changed files with 69 additions and 13 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ func (rh *RouteHandler) SetupRoutes() {
rh.c.Router.PathPrefix("/swagger/v2/").Methods("GET").Handler(httpSwagger.WrapHandler)
// Setup Extensions Routes
if rh.c.Config != nil && rh.c.Config.Extensions != nil {
ext.SetupRoutes(rh.c.Router, rh.c.StoreController, rh.c.Log)
ext.SetupRoutes(rh.c.Config.Extensions, rh.c.Router, rh.c.StoreController, rh.c.Log)
}
}