1
0
Fork 0

create new end point to serve the merged calendar file and refresh if older than an hour

This commit is contained in:
Ryan Mwangi 2024-10-24 15:16:44 +03:00
parent bd3ab65003
commit 6d0e28486f
1 changed files with 6 additions and 0 deletions

View File

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