mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +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
|
||
|
};
|