trilium/node/routes/logout.js

11 lines
206 B
JavaScript
Raw Normal View History

2017-10-16 04:32:49 +08:00
const express = require('express');
const router = express.Router();
router.post('', async (req, res, next) => {
req.session.loggedIn = false;
res.redirect('login');
});
module.exports = router;