forked from ryanmwangi/CalMerger
create new end point to serve the merged calendar file and refresh if older than an hour
This commit is contained in:
parent
bd3ab65003
commit
6d0e28486f
1 changed files with 6 additions and 0 deletions
|
@ -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`;
|
||||
|
|
Loading…
Add table
Reference in a new issue