mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
Add week notes to frontend_script_api (#2253)
Note: getWeekNote can take `startOfTheWeek` as options but is not passed to the api route.
This commit is contained in:
@@ -14,6 +14,10 @@ function getDateNote(req) {
|
||||
return dateNoteService.getDateNote(req.params.date);
|
||||
}
|
||||
|
||||
function getWeekNote(req) {
|
||||
return dateNoteService.getWeekNote(req.params.date);
|
||||
}
|
||||
|
||||
function getMonthNote(req) {
|
||||
return dateNoteService.getMonthNote(req.params.month);
|
||||
}
|
||||
@@ -65,6 +69,7 @@ function getHoistedNote() {
|
||||
module.exports = {
|
||||
getInboxNote,
|
||||
getDateNote,
|
||||
getWeekNote,
|
||||
getMonthNote,
|
||||
getYearNote,
|
||||
getDateNotesForMonth,
|
||||
|
||||
@@ -262,6 +262,7 @@ function register(app) {
|
||||
|
||||
apiRoute(GET, '/api/special-notes/inbox/:date', specialNotesRoute.getInboxNote);
|
||||
apiRoute(GET, '/api/special-notes/date/:date', specialNotesRoute.getDateNote);
|
||||
apiRoute(GET, '/api/special-notes/week/:date', specialNotesRoute.getWeekNote);
|
||||
apiRoute(GET, '/api/special-notes/month/:month', specialNotesRoute.getMonthNote);
|
||||
apiRoute(GET, '/api/special-notes/year/:year', specialNotesRoute.getYearNote);
|
||||
apiRoute(GET, '/api/special-notes/notes-for-month/:month', specialNotesRoute.getDateNotesForMonth);
|
||||
|
||||
Reference in New Issue
Block a user