So in the last post we went over the project structure. This time, we’ll actually modify some of the code to create our own RESTful web service.
If you don’t know what a RESTful web service is, you should check out the wikipedia entry for it.
As discussed in the previous post, all of our routes are defined in files located in the routes folder which are then referenced and collated in the app.js file. So, to create our own RESTful API, we need to do something in this area.
Lets checkout the
index.js file and see whats in it.