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,
|
2018-08-01 01:43:08 +02:00
|
|
|
message: 'you successfully logged out',
|
2018-05-04 19:11:53 +02:00
|
|
|
};
|
|
|
|
res.status(200).json(responseObject);
|
2018-03-29 07:06:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = logout;
|