|
|
|
@ -22,18 +22,7 @@ module.exports = (io, bot)=>
|
|
|
|
|
router.route('/dashboard').get(dash.get(io))
|
|
|
|
|
.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);
|
|
|
|
|
// router.route('/game').get(api.getGame);
|
|
|
|
|
// router.route('/api/getGameData').get(api.getGameData);
|
|
|
|
|
// router.route('/api/RegisterGame').post(api.registerGame);
|
|
|
|
|
// router.route('/api/getAllLeagues').get(api.getAllLeagues);
|
|
|
|
|
// router.route('/api/getLeague').get(api.getLeague);
|
|
|
|
|
// router.route('/createLeague').get(api.createLeaguePage)
|
|
|
|
|
// router.route('/api/createLeague').post(api.createLeague)
|
|
|
|
|
router.route('/addtodiscord').get(homeController.addtodiscord)
|
|
|
|
|
return router;
|
|
|
|
|
};
|