mirror of
https://github.com/cupcakearmy/blaze.git
synced 2025-12-07 19:55:00 +00:00
It's really late
This commit is contained in:
8
index.ts
8
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`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user