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

4. get * #4

Closed CYCBrian closed 10 months ago

CYCBrian commented 10 months ago

create function so that get * would return the index.html

CYCBrian commented 10 months ago

added code to html-routes.js for getting notes and *

app.get("*", (req, res)=>{ res.sendFile(path.join(__dirname, "public/index.html")) });

Currently stanalone code, not exported to server.js

CYCBrian commented 10 months ago

DONE!