5 ms·
If I'm not mistaken, instead of splitting into: controllers/ users.js teams.js models/ user.js team.js Just have: modules/ users.js
by rs 13y ago
If I'm not mistaken, instead of splitting into:
controllers/
users.js
teams.js
models/
user.js
team.js
Just have:
modules/
users.js
teams.js
Where model and controllers for each function is defined within a single file.
I've switched to this convention as well - less context switching of files.
- Kiro 13y agoI don't understand what you would have in "models". Services?