spee.ch/server/routes/auth/logout.js
2018-03-29 11:40:47 -07:00

6 lines
157 B
JavaScript

const logout = (req, res) => {
req.logout();
res.status(200).json({success: true, message: 'you successfully logged out'});
};
module.exports = logout;