Main #5

Merged
Nikiroy78 merged 9 commits from main into laptop 2023-10-02 14:22:56 +03:00
Showing only changes of commit 2bcef6fbae - Show all commits

View File

@ -3,7 +3,10 @@ const fs = require("fs");
router.use(require("express").static("./frontend/public"));
router.get("/", async (req, res) => {
res.send(fs.readFileSync("./frontend/main.html", { encoding: "utf-8" }));
fs.readFile("./frontend/main.html", { encoding: "utf-8" }, function (err, data) {
// Display the file content
res.send(data);
});
});
module.exports = router;