mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 00:29:59 +01:00
reorganization of source code
This commit is contained in:
12
routes/api/recent_changes.js
Normal file
12
routes/api/recent_changes.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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 desc limit 1000");
|
||||
|
||||
res.send(recentChanges);
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user