Skip to content

Instantly share code, notes, and snippets.

@donjosef
Created September 24, 2019 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donjosef/4f4c46b4479a724f133e81ced23c6e04 to your computer and use it in GitHub Desktop.
Save donjosef/4f4c46b4479a724f133e81ced23c6e04 to your computer and use it in GitHub Desktop.
Plug router into app to start handling routing
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