Updated much

This commit is contained in:
CorwinDev committed 2022-08-05 14:59:15 +02:00
1 parent 93b118f874
commit b2cd1691af
21 files changed
+1479 -172

No files matched your search

+5 -3
View File
@@ -9,6 +9,7 @@ router.get('/add', function (req, res) {
res.render('bot/add', {user: req.user});
return
} else {
req.session.backURL = req.url;
res.redirect('/auth');
}
});
@@ -38,8 +39,8 @@ router.post('/add', function (req, res) {
}
});
}else {
req.session.error = "You aren't logged in";
res.redirect('/');
req.session.backURL = req.url;
res.redirect('/auth');
}
});
@@ -53,7 +54,8 @@ router.get('/:botID', function (req, res) {
req.session.error = "No bot found";
return res.redirect('/');
}
res.render('bot/index', { bot: bot });
res.render('bot/index', {
bot: bot });
})
})
module.exports = router;