1 2 3 4 5 6
export function root_get(req, res) { if (req.session.user !== undefined) { return res.redirect(302, "/games"); } return res.redirect(302, "/login"); }