mirror of
https://github.com/cupcakearmy/blaze.git
synced 2024-12-23 00:36:26 +00:00
It's really late
This commit is contained in:
parent
1e7883709d
commit
46e3bb7edd
8
index.ts
8
index.ts
@ -13,10 +13,8 @@ const __filename = fileURLToPath(import.meta.url);
|
|||||||
|
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
let url: string
|
|
||||||
|
|
||||||
app.get("/", (req, res) => {
|
app.get("/", (req, res) => {
|
||||||
url = req.query.at as string;
|
const url = req.query.at as string;
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
res.sendFile(path.join(__dirname + "/dist/index.html"));
|
res.sendFile(path.join(__dirname + "/dist/index.html"));
|
||||||
@ -39,3 +37,7 @@ app.get("/", (req, res) => {
|
|||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.listen(port, () => {
|
||||||
|
console.log(`Got request`);
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user