Skip to content

Commit

Permalink
feat: remove web logout endpoint
Browse files Browse the repository at this point in the history
we do not need it
  • Loading branch information
juanpicado committed Mar 24, 2018
1 parent cbf4b9c commit badc707
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/api/web/endpoint/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;

0 comments on commit badc707

Please sign in to comment.