MakeSchool-Tutorials / sa-2018-node-reddit

2 stars 3 forks source link

6. Posts, Database Relationships, Nested Routes #17

Open nsafai opened 6 years ago

nsafai commented 6 years ago

I think this line is missing in the provided solution, under Comments Controller new Action

const commentsRouter = require('./comments');

The above belongs at the top of routes/posts.js if I'm not mistaken.

Also, "points" show up out of nowhere in some of the provided solutions and this breaks unless it gets commented out.