per-browser source id so we support having notecase opened in multiple tabs/windows

This commit is contained in:
azivner
2017-12-16 20:48:34 -05:00
parent 03d86209ca
commit 50ff5da947
17 changed files with 98 additions and 83 deletions

View File

@@ -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;