signout.js 349 B

1234567891011121314151617
  1. const express = require('express');
  2. const router = express.Router();
  3. router.get('/', (req, res, next) => {
  4. //更改登录状态
  5. delete req.session.signinId;
  6. delete req.session.signinStatus;
  7. res.status(200).send({
  8. status: 'successed',
  9. info: '已登出',
  10. url: '#/signin'
  11. });
  12. });
  13. module.exports = router;