mirror of
https://github.com/zadam/trilium.git
synced 2024-11-14 03:40:27 +08:00
16 lines
326 B
JavaScript
16 lines
326 B
JavaScript
"use strict";
|
|
|
|
const express = require('express');
|
|
const router = express.Router();
|
|
const wrap = require('express-promise-wrap').wrap;
|
|
|
|
router.post('', wrap(async (req, res, next) => {
|
|
req.session.regenerate(() => {
|
|
req.session.loggedIn = false;
|
|
|
|
res.redirect('/');
|
|
});
|
|
|
|
}));
|
|
|
|
module.exports = router;
|