Thus far, all our logic resides in the route files. Let's split it up and add some controllers to the Node RESTful API!
----------
Learn Node.js in our comprehensive 30h+ course: https://acad.link/nodejs
Source Code: https://github.com/academind/node-restful-api-tutorial/tree/13-controllers
----------
• You can follow Max on Twitter (@maxedapps).
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!
See you in the videos!
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.