DEV Community

Discussion on: How I structure my REST APIs

Collapse
 
larswaechter profile image
Lars Wächter

Yeah, each router in the /modules/ folder creates a new instance of the express router and those instances are exported to server.ts

This might be interesting for you: expressjs.com/en/4x/api.html#router