diff --git a/server.js b/server.js index 398762b..6337a3c 100644 --- a/server.js +++ b/server.js @@ -14,6 +14,16 @@ var corsOptions = { optionsSuccessStatus: 200 // some legacy browsers (IE11, various SmartTVs) choke on 204 } +app.get('/', cors(), async (req, res) => { + res.send(` + + `); +}); + app.use('/static', express.static('public')); app.use('/favicon.ico', express.static('public/favicon.ico')); @@ -72,8 +82,4 @@ app.get('/v1/cache/stats', cors(), (req, res) => { }); app.listen(PORT, HOST); -console.log(`Running on http://${HOST}:${PORT}`); - -// Warm cache -getPilots(); -// getATCSectors(); \ No newline at end of file +console.log(`Running on http://${HOST}:${PORT}`); \ No newline at end of file