6 lines
157 B
JavaScript
6 lines
157 B
JavaScript
const logout = (req, res) => {
|
|
req.logout();
|
|
res.status(200).json({success: true, message: 'you successfully logged out'});
|
|
};
|
|
|
|
module.exports = logout;
|