mirror of
https://github.com/zadam/trilium.git
synced 2024-11-15 12:17:01 +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;
|