mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
auth changes
This commit is contained in:
@@ -7,8 +7,9 @@ const sql = require('../../services/sql');
|
||||
const data_dir = require('../../services/data_dir');
|
||||
const utils = require('../../services/utils');
|
||||
const sync_table = require('../../services/sync_table');
|
||||
const auth = require('../../services/auth');
|
||||
|
||||
router.get('/:directory/to/:parentNoteId', async (req, res, next) => {
|
||||
router.get('/:directory/to/:parentNoteId', auth.checkApiAuth, async (req, res, next) => {
|
||||
const directory = req.params.directory.replace(/[^0-9a-zA-Z_-]/gi, '');
|
||||
const parentNoteId = req.params.parentNoteId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user