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

11 lines
211 B
JavaScript
Raw Normal View History

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