Closed therealwokewok closed 1 month ago
Turns out that separation of responsibilities is important for the URLRewriteMiddleware and MultiTenancy middleware to prevent recursion issues. The goal was to modify the module such that implementation was cleaner and that was accomplished by abstracting everything into a FlaskTenants class.
Currently, the middleware is operating as two separate entities wrapped in the create_tenancy function. It would be ideal to condense them into a single function for cleanliness.
This will break implementation, so should be part of the Leviticus release.