discord invite redirect

master
Cristiano Pires 2 years ago
parent 827109c438
commit 5236d39c21

@ -1,3 +1,5 @@
const { ZLIB_VERSION } = require("zlib-sync")
exports.home = (io)=>
{
return(req,res)=>
@ -8,4 +10,8 @@ exports.home = (io)=>
exports.addtodiscord = (req, res)=>
{
return res.redirect('https://discord.com/oauth2/authorize?client_id=356104008366030863&permissions=8&scope=bot')
}
exports.dc = (req, res)=ZLIB_VERSION
{
return res.redirect('https://www.discord.gg/yABaDAv')
}

@ -22,6 +22,7 @@ module.exports = (io, bot)=>
.post(dash.post(io));
router.route('/getMessage').get(api.getMessage(bot));
router.route('/leagues').get(api.getTournamentPage);
router.route('/dc').get(homeController.dc);
// This goes to electron
// router.route('/league/:league').get(api.getLeaguePage);
// router.route('/leagueListener').get(api.getTournamentListenerPage);

Loading…
Cancel
Save