2018-03-29 20:40:47 +02:00
|
|
|
const logout = (req, res) => {
|
|
|
|
req.logout();
|
2018-05-04 19:11:53 +02:00
|
|
|
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;
|