Hi, I'm am trying to implement node_mongo_tenant with node-restful for my app, but I am struggling figuring out a way to make work.
When I define the byTenant method soon after the model, and before registering the route on node-restful, I must know the Tenant(user) by the time. As the user is going to be known only after login and the route with pre-determined tenant is already registered, I can't find a way to change the tenant constant so it will apply the right tenant to the route.
I thought on registering the route after login as solution, but it would have serious implications for the app. Is there any smarter idea? As u may see, it's a newbie question. Thanks