mirror of
https://github.com/zadam/trilium.git
synced 2025-01-30 10:57:51 +08:00
14 lines
355 B
JavaScript
14 lines
355 B
JavaScript
"use strict";
|
|
|
|
const express = require('express');
|
|
const router = express.Router();
|
|
const auth = require('../services/auth');
|
|
const source_id = require('../services/source_id');
|
|
|
|
router.get('', auth.checkAuth, async (req, res, next) => {
|
|
res.render('index', {
|
|
sourceId: await source_id.generateSourceId()
|
|
});
|
|
});
|
|
|
|
module.exports = router;
|