MakeSchool-Tutorials / Node-Reddit-Clone

📰 In this tutorial you'll build a clone of the "front page of the internet" Reddit using cutting edge server-side JavaScript and MongoDB.
15 stars 15 forks source link

3. Displaying All Posts - /POSTS/SHOW ROUTE #40

Open xScoopy opened 3 years ago

xScoopy commented 3 years ago

In the following line, controllers/post.js should be controllers/posts.js. Super sorry to nitpick but I got caught up in confusion since I opened up post.js and tried fiddling around in there xD

open controllers/post.js, and add a new GET endpoint. Make sure all middleware requirements happen ABOVE it:

starlightromero commented 3 years ago

You're on fire @xScoopy! I appreciate the heads up. Just made this change. If you'd like to check out the latest changes you can see them here. Please treat that repo linked as a nightly/testing build that is in the process of changes and revisions