From badc707777166826039b6ec9967e624e65ca5fb1 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Thu, 22 Mar 2018 06:49:43 +0100 Subject: [PATCH] feat: remove web logout endpoint we do not need it --- src/api/web/endpoint/user.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/api/web/endpoint/user.js b/src/api/web/endpoint/user.js index bf459306d..2c57f6b75 100644 --- a/src/api/web/endpoint/user.js +++ b/src/api/web/endpoint/user.js @@ -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;