With the APIs decided, add the corresponding controller functions that will respond to the requests to these APIs in a separate file in the server/controllers folder. The controller functions in this file should access and manipulate the data for the model defined for this feature.
Adding controllers
Get Full-Stack React Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.