diff --git a/controller/home.js b/controller/home.js index c38be9a..0da717a 100644 --- a/controller/home.js +++ b/controller/home.js @@ -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') } \ No newline at end of file diff --git a/routes/routes.js b/routes/routes.js index 430ac9a..646a67f 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -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);