spee.ch/server/controllers/auth/logout/index.js
2018-07-31 16:43:08 -07:00

10 lines
211 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;