From 46e3bb7eddcf1fa225d670d89e2faeeaefb707a7 Mon Sep 17 00:00:00 2001 From: Danny Spina Date: Mon, 19 Jun 2023 00:52:20 +0200 Subject: [PATCH] It's really late --- index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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`); +});