sjy-ecos/routes/logout.js

13 lines
288 B
JavaScript
Raw Normal View History

2018-01-30 04:26:04 +00:00
var express = require('express');
var Promise = require('bluebird');
var router = express.Router();
var models_eco_v1 = require('../model/sjy_eco_v1.js');
router.get('/', function (req, res, next) {
req.session.user = null;
res.redirect('/login');
});
module.exports = router;