1
0
Fork 0

remove merged-calendar endpoint

This commit is contained in:
Ryan Mwangi 2024-10-19 17:14:59 +03:00
parent d43a701051
commit fe35fd3665
1 changed files with 0 additions and 7 deletions

View File

@ -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, () => {