spee.ch/server/controllers/auth/logout.js
2018-04-26 23:42:22 -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;