JavaScript Express Basics Parameters, Query Strings, and Modularizing Routes Modular Routes

2 Answers

Zimri Leijen
Zimri Leijen
9,921 Points

it defaults to index.js

Peter May
Peter May
Full Stack JavaScript Techdegree Student 9,956 Points

Andrew explains briefly that the default when declaring "const mainRoutes = require('./routes');"

express defaults to "index.js"