mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
try to disable possible cause of too many redirects
This commit is contained in:
@@ -91,9 +91,6 @@ api.getNewClient = {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: '/',
|
url: '/',
|
||||||
async handler (req, res) {
|
async handler (req, res) {
|
||||||
if (!(req.session && req.session.userId)) {
|
|
||||||
return res.redirect('/');
|
|
||||||
}
|
|
||||||
return res.sendFile('./dist-client/index.html', {root: `${__dirname}/../../../../`});
|
return res.sendFile('./dist-client/index.html', {root: `${__dirname}/../../../../`});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user