try to disable possible cause of too many redirects

This commit is contained in:
Matteo Pagliazzi
2017-08-21 19:48:08 +02:00
parent 203d6d3ac2
commit 2760de7951

View File

@@ -91,9 +91,6 @@ api.getNewClient = {
method: 'GET',
url: '/',
async handler (req, res) {
if (!(req.session && req.session.userId)) {
return res.redirect('/');
}
return res.sendFile('./dist-client/index.html', {root: `${__dirname}/../../../../`});
},
};