removing legacy code on path_rewrite_middleware
This commit is contained in:
@@ -452,10 +452,12 @@ Host: myplatform.com
|
||||
- Sets: request.state.vendor = <Vendor>
|
||||
- Sets: request.state.clean_path = "/shop/products"
|
||||
|
||||
2. PathRewriteMiddleware
|
||||
- Rewrites: request.scope['path'] = "/shop/products"
|
||||
2. FastAPI Router
|
||||
- Routes registered with prefix: /vendors/{vendor_code}/shop
|
||||
- Matches: /vendors/WIZAMART/shop/products
|
||||
- vendor_code path parameter = "WIZAMART"
|
||||
|
||||
3-4. Same as previous examples
|
||||
3-4. Same as previous examples (Context, Theme middleware)
|
||||
```
|
||||
|
||||
## Testing Multi-Tenancy
|
||||
|
||||
Reference in New Issue
Block a user