1
0
Fork 0

remove calendar :id end point

This commit is contained in:
Ryan Mwangi 2024-10-25 14:51:39 +03:00
parent 1d4e440093
commit edfc7c9eec
1 changed files with 0 additions and 6 deletions

View File

@ -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 saveCalendarData(calendarId, linkGroupName, calendars) {