Creating the controllers folder Create a folder called controllers . Create a file called comments.js and add the following code: ... Let's import the controllers on the app.js file; add the following lines after var users = require('./server/routes/users') : ... Now add the comments route after app.use('/users', users) : More items...