Open cmlooff opened 2 years ago
Link: feedRouter
[x] Set up router with GET, POST, DELETE requests
[x] Get from Database Route: GET feed/ Desc: Gets the feedItems from database to populate the Feed.jsx Access: Public
[x] Insert into Database Route: POST feed/give Desc: Inserts data from frontend form into database Access: Public
[x] Deletes from Database Route: feed/delete/:id Desc: Delete data from database by id Access: Private Server[Server.js]
graph TD; feedGet[feedRouter.get] -->feedController[feedController.js]; feedPost[feedRouter.post] -->feedController; feedDelete[feedRouter.delete] -->feedController;
graph TD; feedGet[feedRouter.get] -->Client[Client/Frontend] feedPost[feedRouter.post] -->Client; feedDelete[feedRouter.delete] -->Client;
Link: feedRouter
[x] Set up router with GET, POST, DELETE requests
[x] Get from Database Route: GET feed/ Desc: Gets the feedItems from database to populate the Feed.jsx Access: Public
[x] Insert into Database Route: POST feed/give Desc: Inserts data from frontend form into database Access: Public
[x] Deletes from Database Route: feed/delete/:id Desc: Delete data from database by id Access: Private Server[Server.js]
We have a controller middleware that runs our logic
After the middleware runs, we then send the response