trilium/src/routes/api/recent_notes.js
2020-06-20 12:31:38 +02:00

15 lines
252 B
JavaScript

"use strict";
const RecentNote = require('../../entities/recent_note');
function addRecentNote(req) {
new RecentNote({
noteId: req.body.noteId,
notePath: req.body.notePath
}).save();
}
module.exports = {
addRecentNote
};