mirror of
https://github.com/zadam/trilium.git
synced 2024-11-15 20:33:12 +08:00
14 lines
336 B
JavaScript
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;
|