mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
fix: remove token experiment flag (#2332)
This commit is contained in:
parent
7180338c44
commit
29240544b1
1 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue