trilium/src/routes/api/recent_notes.js
2019-05-14 22:29:47 +02:00

17 lines
330 B
JavaScript

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