It's really late

This commit is contained in:
Danny Spina 2023-06-19 00:52:20 +02:00
parent 1e7883709d
commit 46e3bb7edd

View File

@ -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`);
});