CYCBrian / Week-11-Express.js-Note-Taker

An application used to write and save notes. This application will use an Express.js back end and will save and retrieve note data from a JSON file.
MIT License
0 stars 0 forks source link

3. added get notes and get * #5

Closed CYCBrian closed 10 months ago

CYCBrian commented 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