spee.ch/server/routes/auth/logout.js
2018-03-28 22:06:08 -07:00

8 lines
183 B
JavaScript

const logout = () => {
return (req, res) => {
req.logout();
res.status(200).json({success: true, message: 'you successfully logged out'});
};
};
module.exports = logout;