11 lines
201 B
JavaScript
11 lines
201 B
JavaScript
|
const express = require('express');
|
||
|
const router = express.Router();
|
||
|
|
||
|
router.get('/', function(req, res, next) {
|
||
|
req.session.user = null;
|
||
|
res.redirect("/login");
|
||
|
});
|
||
|
|
||
|
module.exports = router;
|
||
|
|