reorganization of source code

This commit is contained in:
azivner
2017-10-15 19:47:05 -04:00
parent 38b95a743b
commit 0c823a2927
315 changed files with 99 additions and 530 deletions

View 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;