forked from ryanmwangi/CalMerger
remove merged-calendar endpoint
This commit is contained in:
parent
d43a701051
commit
fe35fd3665
|
@ -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, () => {
|
||||
|
|
Loading…
Reference in New Issue