mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
per-browser source id so we support having notecase opened in multiple tabs/windows
This commit is contained in:
@@ -3,10 +3,12 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const auth = require('../services/auth');
|
||||
const utils = require('../services/utils');
|
||||
const source_id = require('../services/source_id');
|
||||
|
||||
router.get('', auth.checkAuth, async (req, res, next) => {
|
||||
res.render('index', {});
|
||||
res.render('index', {
|
||||
sourceId: await source_id.generateSourceId()
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user