From 6d0e28486f2d1c8ccae229c41fa1dad82cb94a82 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Thu, 24 Oct 2024 15:16:44 +0300 Subject: [PATCH] create new end point to serve the merged calendar file and refresh if older than an hour --- server.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.js b/server.js index 8e73bcc..5d31597 100644 --- a/server.js +++ b/server.js @@ -106,6 +106,12 @@ END:VEVENT } }); +// Serve the merged calendar file and refresh if older than an hour +app.get('/calendar/:name', async (req, res) => { + + +}); + // Serve the merged calendar file app.get('/calendar/:id', (req, res) => { const filename = `${req.params.id}.ics`;