trilium/routes/index.js
2017-11-10 22:55:19 -05:00

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