mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
Add an 'enable' flag in the server configuration to enable gql-based searches
"extensions": {
"search": {
"enable": true
}
}
This commit is contained in:
committed by
Ramkumar Chinchani
parent
c1dd7878e4
commit
792e82cbdf
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user