fix: fixed frontend (I hope so)

This commit is contained in:
Lukian LEIZOUR 2025-04-15 23:09:57 +02:00
parent 92a6e8ed2d
commit 910f23808e

View file

@ -27,6 +27,12 @@ function loadRoutes(folderName) {
loadRoutes("api"); loadRoutes("api");
app.use(express.static("public"));
app.get("*", (req, res) => {
res.sendFile(path.join(__dirname, "public", "index.html"));
});
app.listen(3000, () => { app.listen(3000, () => {
console.log(`Server listening on http://localhost:3000/`); console.log(`Server listening on http://localhost:3000/`);
}); });