Closed CYCBrian closed 10 months ago
added code to html-routes.js for getting notes and *
app.get("/notes", (req, res) => { res.sendFile(path.join(__dirname, "public/notes.html")) })
app.get("*", (req, res)=>{ res.sendFile(path.join(__dirname, "public/index.html")) });
Currently stanalone code, not exported to server.js
added code to html-routes.js for getting notes and *
app.get("/notes", (req, res) => { res.sendFile(path.join(__dirname, "public/notes.html")) })
app.get("*", (req, res)=>{ res.sendFile(path.join(__dirname, "public/index.html")) });
Currently stanalone code, not exported to server.js