spee.ch/server/controllers/auth/logout/index.js

7 lines
157 B
JavaScript
Raw Normal View History

2018-03-29 20:40:47 +02:00
const logout = (req, res) => {
req.logout();
res.status(200).json({success: true, message: 'you successfully logged out'});
2018-03-29 07:06:08 +02:00
};
module.exports = logout;