13 lines
182 B
JavaScript
13 lines
182 B
JavaScript
|
let router = require("express").Router();
|
||
|
|
||
|
|
||
|
router.get("/", (req, res) => {
|
||
|
req.session.login = false;
|
||
|
req.session.save();
|
||
|
res.redirect("/login");
|
||
|
});
|
||
|
|
||
|
|
||
|
module.exports = router;
|
||
|
|