Hi, thanks for sharing. I like the structure.
Just did a quick check how my last express project was structured.
The project was quite complex. I had a routes folder too.
But the exports of each folder was an own router object.
One can say that each routes folder was a project on it's own this way like independent.
Great for microservices if you decide to put it into separate services.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, thanks for sharing. I like the structure.
Just did a quick check how my last express project was structured.
The project was quite complex. I had a routes folder too.
But the exports of each folder was an own router object.
Then in the root of the project dir I had the app.js that put the routers together like so:
One can say that each routes folder was a project on it's own this way like independent.
Great for microservices if you decide to put it into separate services.