mirror of
https://github.com/zadam/trilium.git
synced 2024-12-25 16:51:16 +08:00
15 lines
269 B
JavaScript
15 lines
269 B
JavaScript
"use strict";
|
|
|
|
const express = require('express');
|
|
const router = express.Router();
|
|
|
|
router.post('', async (req, res, next) => {
|
|
req.session.regenerate(() => {
|
|
req.session.loggedIn = false;
|
|
|
|
res.redirect('/');
|
|
});
|
|
|
|
});
|
|
|
|
module.exports = router;
|