mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
node authentication
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const sql = require('../sql');
|
||||
const auth = require('../auth');
|
||||
|
||||
router.get('/:noteId', async (req, res, next) => {
|
||||
router.get('/:noteId', auth.checkApiAuth, async (req, res, next) => {
|
||||
const noteId = req.params.noteId;
|
||||
|
||||
const history = await sql.getResults("select * from notes_history where note_id = ? order by date_modified desc", [noteId]);
|
||||
|
||||
Reference in New Issue
Block a user