Currently, I am in the process of constructing a rest API for a fully multi-tenant system using a single database and application. To achieve this, I have chosen NestJS as my framework of choice. My goal is to structure all modules based on the :tenantID that I provide at the root location of the application.
For instance, if I have modules such as users and conversations, I envision the endpoints to appear like this:
app_url/:tenantID/users
app_url/:tenantID/conversations
Despite my efforts, I have not been able to find any guidance on how to implement this specific feature.