feat: remove web logout endpoint

we do not need it
This commit is contained in:
Juan Picado @jotadeveloper 2018-03-22 06:49:43 +01:00
parent cbf4b9c364
commit badc707777
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
1 changed files with 0 additions and 9 deletions

View File

@ -4,7 +4,6 @@ import HTTPError from 'http-errors';
import type {Config} from '@verdaccio/types';
import type {Router} from 'express';
import type {IAuth, $ResponseExtend, $RequestExtend, $NextFunctionVer} from '../../../../types';
// import {combineBaseUrl, getWebProtocol} from '../../../lib/utils';
function addUserAuthApi(route: Router, auth: IAuth, config: Config) {
route.post('/login', function(req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer) {
@ -21,14 +20,6 @@ function addUserAuthApi(route: Router, auth: IAuth, config: Config) {
}
});
});
// FIXME: this will be re-implemented
// route.post('/-/logout', function(req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer) {
// const base = combineBaseUrl(getWebProtocol(req), req.get('host'), config.url_prefix);
// res.cookies.set('token', '');
// res.redirect(base);
// });
}
export default addUserAuthApi;