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:
Sathyam M Vellal
2021-10-21 03:16:51 -07:00
committed by GitHub
parent 3d98644bf6
commit 3b551e3e4d
4 changed files with 25 additions and 0 deletions

View File

@@ -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);