mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
node authentication
This commit is contained in:
@@ -3,8 +3,9 @@ const router = express.Router();
|
||||
const sql = require('../sql');
|
||||
const utils = require('../utils');
|
||||
const audit_category = require('../audit_category');
|
||||
const auth = require('../auth');
|
||||
|
||||
router.put('/:noteId/moveTo/:parentId', async (req, res, next) => {
|
||||
router.put('/:noteId/moveTo/:parentId', auth.checkApiAuth, async (req, res, next) => {
|
||||
let noteId = req.params.noteId;
|
||||
let parentId = req.params.parentId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user