Fixed a mistake

This commit is contained in:
TheEmeraldStarr 2020-11-05 11:01:09 -08:00 committed by GitHub
parent 17d4b36639
commit 290b2968cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
app.js
View file

@ -483,7 +483,7 @@ app.get('/', async (req, res) => {
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'info.html'), 'utf8'));
}
switch (req.url == '/?k') {
switch (req.url) {
case '/?k':
return res.send(fs.readFileSync(path.join(__dirname, 'public', 'pages', 'frames', 'krunker.html'), 'utf8'));
}
@ -565,4 +565,4 @@ app.use(async (req, res, next) => {
res.redirect(307, config.prefix + btoa(req.session.url) + req.url)
} else return next();
});
});