A user must be logged in, (perhaps by default to make it easier to continue developing MVP features) and a cookie for that user must be present. If the cookie for the user is present, the items-api endpoint will return JSON for SELECT * FROM items WHERE user_id = $1
Then the front end can make a get request to that endpoint to render the items in the users todo list.
A user must be logged in, (perhaps by default to make it easier to continue developing MVP features) and a cookie for that user must be present. If the cookie for the user is present, the
items-apiendpoint will return JSON forSELECT * FROM items WHERE user_id = $1Then the front end can make a get request to that endpoint to render the items in the users todo list.