mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 18:42:28 +08:00
11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
![]() |
const express = require('express');
|
||
|
const router = express.Router();
|
||
|
const sql = require('../sql');
|
||
|
|
||
|
router.get('/', 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;
|