docs: add consolidated dev URL reference and migrate /shop to /storefront
Some checks failed
Some checks failed
- Add Development URL Quick Reference section to url-routing overview with all login URLs, entry points, and full examples - Replace /shop/ path segments with /storefront/ across 50 docs files - Update file references: shop_pages.py → storefront_pages.py, templates/shop/ → templates/storefront/, api/v1/shop/ → api/v1/storefront/ - Preserve domain references (orion.shop) and /store/ staff dashboard paths - Archive docs left unchanged (historical) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -365,12 +365,12 @@ The following permission dependencies now use token-based store context:
|
||||
- `require_all_store_permissions()` - Gets store from token, sets `request.state.store`
|
||||
- `get_user_permissions` - Gets store from token, sets `request.state.store`
|
||||
|
||||
### Shop Endpoints
|
||||
Shop endpoints (public, no authentication) still use `require_store_context()`:
|
||||
- `app/api/v1/shop/products.py` - Uses URL/subdomain/domain detection
|
||||
- `app/api/v1/shop/cart.py` - Uses URL/subdomain/domain detection
|
||||
### Storefront Endpoints
|
||||
Storefront endpoints (public, no authentication) still use `require_store_context()`:
|
||||
- `app/api/v1/storefront/products.py` - Uses URL/subdomain/domain detection
|
||||
- `app/api/v1/storefront/cart.py` - Uses URL/subdomain/domain detection
|
||||
|
||||
This is correct behavior - shop endpoints need to detect store from the request URL, not from JWT token.
|
||||
This is correct behavior - storefront endpoints need to detect store from the request URL, not from JWT token.
|
||||
|
||||
## Benefits of Store-in-Token
|
||||
|
||||
|
||||
Reference in New Issue
Block a user