Merge branch 'MathMan05:main' into main

This commit is contained in:
greysilly7 2024-09-25 11:10:58 -07:00 committed by GitHub
commit be40162fc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 431 additions and 77 deletions

View file

@ -102,7 +102,10 @@ app.use("/", async (req: Request, res: Response)=>{
res.sendFile(path.join(__dirname, "webpage", "invite.html"));
return;
}
if(req.path.endsWith("service.js")){
res.send("nope :3");
return;
}
const filePath = path.join(__dirname, "webpage", req.path);
try{
await fs.access(filePath);