mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			269 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 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;
 |