red-lipped-batfish-scad / HugelMaps

MIT License
6 stars 2 forks source link

Backend: feedRouter.js #10

Open cmlooff opened 2 years ago

cmlooff commented 2 years ago

Link: feedRouter

We have a controller middleware that runs our logic

graph TD;
    feedGet[feedRouter.get] -->feedController[feedController.js];
    feedPost[feedRouter.post] -->feedController;
    feedDelete[feedRouter.delete] -->feedController;

After the middleware runs, we then send the response

graph TD;
    feedGet[feedRouter.get] -->Client[Client/Frontend]
    feedPost[feedRouter.post] -->Client;
    feedDelete[feedRouter.delete] -->Client;