spee.ch/server/controllers/auth/logout/index.js
2018-04-27 14:29:00 -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;