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
|
@ -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
|
// Serve the merged calendar file
|
||||||
app.get('/calendar/:id', (req, res) => {
|
app.get('/calendar/:id', (req, res) => {
|
||||||
const filename = `${req.params.id}.ics`;
|
const filename = `${req.params.id}.ics`;
|
||||||
|
|
Loading…
Reference in New Issue