1 2 3 4 5 6
import withSession from 'hocs/withSession' export default withSession(async (req, res) => { req.session.destroy() res.json({ isLoggedIn: false }) })