forked from ryanmwangi/CalMerger
remove calendar :id end point
This commit is contained in:
parent
1d4e440093
commit
edfc7c9eec
|
@ -201,12 +201,6 @@ app.get('/calendar/:name', async (req, res) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Serve the merged calendar file
|
|
||||||
app.get('/calendar/:id', (req, res) => {
|
|
||||||
const filename = `${req.params.id}.ics`;
|
|
||||||
res.setHeader('Content-Type', 'text/calendar');
|
|
||||||
res.sendFile(filename, { root: MERGED_CALENDARS_DIR });
|
|
||||||
});
|
|
||||||
|
|
||||||
//function to save calendar data to seperate .json files
|
//function to save calendar data to seperate .json files
|
||||||
function saveCalendarData(calendarId, linkGroupName, calendars) {
|
function saveCalendarData(calendarId, linkGroupName, calendars) {
|
||||||
|
|
Loading…
Reference in New Issue