move apir and html codes to their respective folder.
solved issue of webapp not automatically retrieving data from db.json and displaying it. turned out the it's a problem with the *html route interacting with the order in which the app use code was place. now /api for api routes goes first, then / for html routes.
solved issue where delete function did not work in the web app. I used uuid because it's just what the package is called, but index.js specifically looks for id instead. changed the const uuid to id in the post request in api routes so now it works.
move apir and html codes to their respective folder.
solved issue of webapp not automatically retrieving data from db.json and displaying it. turned out the it's a problem with the *html route interacting with the order in which the app use code was place. now /api for api routes goes first, then / for html routes.
solved issue where delete function did not work in the web app. I used uuid because it's just what the package is called, but index.js specifically looks for id instead. changed the const uuid to id in the post request in api routes so now it works.