12 lines
182 B
JavaScript
12 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;
|
|
|