mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			380 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			380 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const express = require('express');
 | |
| const router = express.Router();
 | |
| const sql = require('../../sql');
 | |
| const auth = require('../../auth');
 | |
| 
 | |
| router.get('/', auth.checkApiAuth, async (req, res, next) => {
 | |
|     const recentChanges = await sql.getResults("select * from notes_history order by date_modified desc limit 1000");
 | |
| 
 | |
|     res.send(recentChanges);
 | |
| });
 | |
| 
 | |
| module.exports = router; |