forked from ryanmwangi/CalMerger
remove unused /:filename endpoint
This commit is contained in:
parent
ae0d41dca4
commit
42bfb3bdd2
|
@ -121,13 +121,6 @@ function saveCalendarData(calendarId, calendars) {
|
|||
});
|
||||
fs.writeFileSync(CALENDARS_FILE, JSON.stringify(calendarsData, null, 2));
|
||||
}
|
||||
// Serve the merged calendar file
|
||||
app.get('/:filename', (req, res) => {
|
||||
const filename = req.params.filename;
|
||||
res.setHeader('Content-Type', 'text/calendar');
|
||||
res.sendFile(filename, { root: '.' });
|
||||
});
|
||||
|
||||
// Function to update the merged calendar
|
||||
async function updateMergedCalendar(){
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue