Add logout & tags endpoints

This commit is contained in:
Isaac
2022-07-23 01:13:25 +01:00
parent cc97a58165
commit 08e757febf
5 changed files with 100 additions and 1 deletions

View 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.');
},
});