mirror of
https://github.com/zadam/trilium.git
synced 2024-09-29 20:15:59 +08:00
21 lines
453 B
JavaScript
21 lines
453 B
JavaScript
|
"use strict";
|
||
|
|
||
|
const dateNoteService = require('../../services/date_notes');
|
||
|
|
||
|
async function getDateNote(req) {
|
||
|
return await dateNoteService.getDateNote(req.params.date);
|
||
|
}
|
||
|
|
||
|
async function getMonthNote(req) {
|
||
|
return await dateNoteService.getMonthNote(req.params.month);
|
||
|
}
|
||
|
|
||
|
async function getYearNote(req) {
|
||
|
return await dateNoteService.getYearNote(req.params.year);
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
getDateNote,
|
||
|
getMonthNote,
|
||
|
getYearNote
|
||
|
};
|