spee.ch/server/routes/auth/logout.js

9 lines
183 B
JavaScript
Raw Normal View History

2018-03-29 07:06:08 +02:00
const logout = () => {
return (req, res) => {
req.logout();
res.status(200).json({success: true, message: 'you successfully logged out'});
};
};
module.exports = logout;