diff --git a/back/index.js b/back/index.js index 28372ab..83877dc 100644 --- a/back/index.js +++ b/back/index.js @@ -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}`); });