mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			336 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			336 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| const express = require('express');
 | |
| const router = express.Router();
 | |
| const auth = require('../services/auth');
 | |
| const utils = require('../services/utils');
 | |
| 
 | |
| router.get('', auth.checkAuth, async (req, res, next) => {
 | |
|     res.render('index', {
 | |
|         browserId: utils.randomString(12)
 | |
|     });
 | |
| });
 | |
| 
 | |
| module.exports = router;
 |