From fe35fd36650c7fb4231c2559457b85749b86d9db Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Sat, 19 Oct 2024 17:14:59 +0300 Subject: [PATCH] remove merged-calendar endpoint --- server.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server.js b/server.js index 36b3ad2..222f258 100644 --- a/server.js +++ b/server.js @@ -245,13 +245,6 @@ cron.schedule('*/3 * * * *', () => { updateMergedCalendar(); }); -// serve updated merged calendar to user -app.get('/merged-calendar', (req, res) => { - const mergedCalendarUrlFile = 'merged_calendar_url.txt'; - const mergedCalendarUrl = fs.readFileSync(mergedCalendarUrlFile, 'utf8'); - res.redirect(mergedCalendarUrl); - }); - // Start the server const port = 3000; app.listen(port, () => {