mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 11:56:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			416 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			416 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
 | 
						|
const express = require('express');
 | 
						|
const router = express.Router();
 | 
						|
const sql = require('../../services/sql');
 | 
						|
const auth = require('../../services/auth');
 | 
						|
 | 
						|
router.get('/', auth.checkApiAuth, async (req, res, next) => {
 | 
						|
    const recentChanges = await sql.getResults("select * from notes_history order by date_modified_to desc limit 1000");
 | 
						|
 | 
						|
    res.send(recentChanges);
 | 
						|
});
 | 
						|
 | 
						|
module.exports = router; |