spee.ch/server/controllers/auth/logout/index.js
2018-05-04 10:11:53 -07:00

10 lines
210 B
JavaScript

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