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