more reliable reimplementation of "create day sub note"

This commit is contained in:
zadam
2019-04-14 12:18:52 +02:00
parent 2b4413a1bd
commit e1e020c1a4
8 changed files with 81 additions and 21 deletions

View File

@@ -0,0 +1,21 @@
"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
};