add missing return
This commit is contained in:
parent
0f4e5afaeb
commit
1cdc6726b4
1 changed files with 1 additions and 0 deletions
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");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue