From 29240544b16381c4eaaa04f80f09c89fc443fc6d Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Wed, 14 Jul 2021 20:22:15 +0200 Subject: [PATCH] fix: remove token experiment flag (#2332) --- src/api/endpoint/index.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/api/endpoint/index.ts b/src/api/endpoint/index.ts index 9f518f1eb..dca94dc5e 100644 --- a/src/api/endpoint/index.ts +++ b/src/api/endpoint/index.ts @@ -15,13 +15,7 @@ import profile from './api/v1/profile'; import token from './api/v1/token'; import v1Search from './api/v1/search'; -const { - match, - validateName, - validatePackage, - encodeScopePackage, - antiLoop -} = require('../middleware'); +const { match, validateName, validatePackage, encodeScopePackage, antiLoop } = require('../middleware'); export default function (config: Config, auth: IAuth, storage: IStorageHandler) { /* eslint new-cap:off */ @@ -58,8 +52,6 @@ export default function (config: Config, auth: IAuth, storage: IStorageHandler) ping(app); stars(app, storage); v1Search(app, auth, storage); - if (_.get(config, 'experiments.token') === true) { - token(app, auth, storage, config); - } + token(app, auth, storage, config); return app; }