trilium/node/routes/logout.js
2017-10-15 16:32:49 -04:00

10 lines
206 B
JavaScript

const express = require('express');
const router = express.Router();
router.post('', async (req, res, next) => {
req.session.loggedIn = false;
res.redirect('login');
});
module.exports = router;