Skip to content

Commit

Permalink
fix: move search v1 endpoint as experimental (#1850)
Browse files Browse the repository at this point in the history
the current one has not auth implemented, to avoid the lack of fallback to the original one now is required to be used it by default until the v1 is on shape production ready.
  • Loading branch information
juanpicado committed Jun 22, 2020
1 parent c0afcad commit 0bfdeaa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conf/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions conf/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion src/api/endpoint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0bfdeaa

Please sign in to comment.