From 42bfb3bdd2a37f79d5b5eadf3435094210bf2547 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Sat, 19 Oct 2024 17:37:10 +0300 Subject: [PATCH] remove unused /:filename endpoint --- server.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server.js b/server.js index 26889ea..e2a736b 100644 --- a/server.js +++ b/server.js @@ -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 {