Skip to content

Instantly share code, notes, and snippets.

@donjosef donjosef/app.js
Created Sep 24, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.