Fixed url pattern in the doc for path-based shops
This commit is contained in:
@@ -73,9 +73,9 @@ Injects: request.state.vendor = <Vendor object>
|
||||
- Rewrites `request.scope['path']` to remove vendor prefix
|
||||
- Allows FastAPI routes to match correctly
|
||||
|
||||
**Example**:
|
||||
**Example** (Path-Based Development Mode):
|
||||
```
|
||||
Original path: /vendor/WIZAMART/shop/products
|
||||
Original path: /vendors/WIZAMART/shop/products
|
||||
Clean path: /shop/products (set by VendorContextMiddleware)
|
||||
↓
|
||||
Path Rewrite Middleware changes request path to: /shop/products
|
||||
|
||||
Reference in New Issue
Block a user