From 87e3c2d060fb7eda58ad90835a483e753512ef11 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Thu, 30 Sep 2021 20:12:52 +1000 Subject: [PATCH] Added landing page --- server.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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