Notes/src/routes/api/recent_notes.js

15 lines
252 B
JavaScript
Raw Normal View History

2017-11-04 23:46:50 -04:00
"use strict";
2018-04-01 12:03:21 -04:00
const RecentNote = require('../../entities/recent_note');
2017-11-04 23:46:50 -04:00
2020-06-20 12:31:38 +02:00
function addRecentNote(req) {
new RecentNote({
noteId: req.body.noteId,
notePath: req.body.notePath
2018-04-02 22:53:01 -04:00
}).save();
2018-03-30 15:34:07 -04:00
}
module.exports = {
addRecentNote
2020-06-20 12:31:38 +02:00
};