How about having Rest API endpoints as a separate module. Because, they are not much related to the site and they have their own levels of traffic compared to that of the site. Also, the security related aspects of endpoints might also differ. The machines on which they will be served on might have high configurations compared to that of the site. Because, REST endpoints are going to be used by a lot of third-parties.
Wouldn't it be better if REST API endpoints are treated as a separate module apart from site and admin, from a developer point of view?
Could you at least tell me how to modularize the site and admin modules as per my wish. It would be better if a tutorial is posted about sub-modularizing broadleaf commerce, (I am not talking about adding new broadleaf modules, but dividing the existing modules into separate parts, means wanting them to act as separate projects in the workspace).
Thanks in advance.