fix: fixed front display

This commit is contained in:
Lukian 2025-04-28 09:14:20 +02:00
parent f0881f2025
commit f841ed348e

View file

@ -29,6 +29,11 @@ function loadRoutes(folderName) {
loadRoutes("api");
app.use(express.static("public"));
app.get("*", (req, res) => {
res.sendFile(path.join(__dirname, "public", "index.html"));
});
app.listen(port, () => {
console.log(`Server listening on port ${port}`);
});