Express routing across files (module.exports) - Node.js Tutorial 7

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I could not figure out how to separate route files for the life of me, and this helped me figure it out in 5 minutes . . . Thank you!

travman
Автор

Awesome, it was direct and shows the 'whole picture' of what is happening!

I was facing troubles using the express-loader (wich is not woth the effort).

caiosaldanha
Автор

You should put a github repository of the codes. It would be very helpful

sukumarhonkote
Автор

app.js is not a psychic. Alright thanks, got it!

niclas.horstad
Автор

Is there any way to pass modules from main server.js to route files?

emreece