mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	more reliable reimplementation of "create day sub note"
This commit is contained in:
		
							
								
								
									
										21
									
								
								src/routes/api/date_notes.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								src/routes/api/date_notes.js
									
									
									
									
									
										Normal 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
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user