add missing return
This commit is contained in:
1
index.js
1
index.js
@@ -163,6 +163,7 @@ app.use('/', async (req, res) => {
|
|||||||
}
|
}
|
||||||
if(req.path==="/"){
|
if(req.path==="/"){
|
||||||
res.sendFile(`./webpage/home.html`, {root: __dirname});
|
res.sendFile(`./webpage/home.html`, {root: __dirname});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if(debugging&&req.path.startsWith("/service.js")){
|
if(debugging&&req.path.startsWith("/service.js")){
|
||||||
res.send("dud");
|
res.send("dud");
|
||||||
|
Reference in New Issue
Block a user