JaBa/dashboard/routes/logout.js

10 lines
241 B
JavaScript
Raw Normal View History

2021-12-10 21:39:54 +05:00
const express = require("express"),
router = express.Router();
// Gets login page
router.get("/", async function(req, res) {
await req.session.destroy();
res.redirect(req.client.config.dashboard.failureURL);
});
module.exports = router;