Skip to content

Commit a47b70b

Browse files
update auth.router
1 parent c67b88e commit a47b70b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/auth/auth.router.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ authRouter.post('/refresh', jwtPassportMiddleware, (request, response) => {
5151
});
5252
});
5353

54+
authRouter.post('/logout', localPassportMiddleware, (req, res) => {
55+
res.header('Cache-Control', 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0');
56+
}
57+
module.exports = {
58+
authRouter
59+
});
60+
5461
module.exports = {
5562
authRouter
5663
};

0 commit comments

Comments
 (0)