How can I organize all of my routes in seperate files. expressjs

There are useful examples of organising routing in the express docs, you’ll also likely find the parameter section useful and the static files section …

http://expressjs.com/en/starter/static-files.html
http://expressjs.com/en/guide/routing.html
http://expressjs.com/en/guide/writing-middleware.html
http://expressjs.com/en/guide/using-middleware.html

1 Like