mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-09 03:11:26 +03:00
Add logout & tags endpoints
This commit is contained in:
7
src/routes/auth/logout.js
Normal file
7
src/routes/auth/logout.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports.get = () => ({
|
||||
handler: async function (req, res) { // must NOT use arrow function syntax
|
||||
res
|
||||
.clearCookie('token', '/')
|
||||
.send('Logged out.');
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user