UltraRangers / gauntlet

Gauntlet is a Typescript server template to kick-off your development fast 🔥🔥🔥
https://gauntlet-demo.herokuapp.com
MIT License
3 stars 0 forks source link

Another file structure proposal #1

Closed jmaicaaan closed 6 years ago

jmaicaaan commented 6 years ago

Examples:

Types: controller, component, test

Path Module File name Entity
/users users get-users.{type}.ts Users
/users users post-users.{type}.ts Users
/users/:id users get-users-by-id.{type}.ts Users
/users/locations locations get-user-locations.{type}.ts Locations
/users/12/locations locations get-user-location.{type}.ts Locations
/users/12/roles roles get-user-roles.{type}.ts Roles
/roles roles get-roles.{type}.ts Roles