fix: fixed frontend (I hope so)
This commit is contained in:
parent
92a6e8ed2d
commit
910f23808e
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,12 @@ function loadRoutes(folderName) {
|
|||
|
||||
loadRoutes("api");
|
||||
|
||||
app.use(express.static("public"));
|
||||
app.get("*", (req, res) => {
|
||||
res.sendFile(path.join(__dirname, "public", "index.html"));
|
||||
});
|
||||
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log(`Server listening on http://localhost:3000/`);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue