diff --git a/index.ts b/index.ts index 728cd25..f456523 100644 --- a/index.ts +++ b/index.ts @@ -13,10 +13,8 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); -let url: string - app.get("/", (req, res) => { - url = req.query.at as string; + const url = req.query.at as string; if (!url) { res.sendFile(path.join(__dirname + "/dist/index.html")); @@ -39,3 +37,7 @@ app.get("/", (req, res) => { console.log(err); }); }); + +app.listen(port, () => { + console.log(`Got request`); +});