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