mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 09:12:08 +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;
|