mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 01:23:57 +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;
|