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,14 @@
const express = require('express');
const router = express.Router();
const sql = require('../../services/sql');
const auth = require('../../services/auth');
router.get('/:noteId', auth.checkApiAuth, async (req, res, next) => {
const noteId = req.params.noteId;
const history = await sql.getResults("select * from notes_history where note_id = ? order by date_modified desc", [noteId]);
res.send(history);
});
module.exports = router;