DiscordTickets/src/server/routes/auth_logout.js
2021-02-28 23:57:21 +00:00

10 lines
171 B
JavaScript

module.exports = {
method: 'get',
route: '/auth/logout',
execute: async (plugin, req, res) => {
req.session.delete();
res.send('Logged out successfully');
}
};