Created
September 24, 2019 18:28
-
-
Save donjosef/4f4c46b4479a724f133e81ced23c6e04 to your computer and use it in GitHub Desktop.
Plug router into app to start handling routing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const postsRoutes = require('./routes/posts'); | |
app.use(postsRoutes); //before mongoose.connect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment