diff --git a/conf/default.yaml b/conf/default.yaml index fad5c4fb0..58763d4aa 100644 --- a/conf/default.yaml +++ b/conf/default.yaml @@ -78,6 +78,8 @@ logs: #experiments: # # support for npm token command # token: false +# # support for the new v1 search endpoint, functional by incomplete read more on ticket 1732 +# search: false # This affect the web and api (not developed yet) #i18n: diff --git a/conf/docker.yaml b/conf/docker.yaml index 52762a811..95b4569a5 100644 --- a/conf/docker.yaml +++ b/conf/docker.yaml @@ -77,6 +77,8 @@ logs: #experiments: # # support for npm token command # token: false +# # support for the new v1 search endpoint, functional by incomplete read more on ticket 1732 +# search: false # This affect the web and api (not developed yet) #i18n: diff --git a/src/api/endpoint/index.ts b/src/api/endpoint/index.ts index 61481a71b..0a4c21ac7 100644 --- a/src/api/endpoint/index.ts +++ b/src/api/endpoint/index.ts @@ -55,7 +55,9 @@ export default function(config: Config, auth: IAuth, storage: IStorageHandler) { ping(app); stars(app, storage); - v1Search(app, auth, storage) + if (_.get(config, 'experiments.search') === true) { + v1Search(app, auth, storage) + } if (_.get(config, 'experiments.token') === true) { token(app, auth, storage, config);