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:
@@ -27,7 +27,7 @@ def store_page(user: User = Depends(get_current_store_from_cookie_or_header)):
|
||||
pass
|
||||
|
||||
# Customer page - NOTE: Returns Customer, not User!
|
||||
@router.get("/shop/account/dashboard")
|
||||
@router.get("/storefront/account/dashboard")
|
||||
def customer_page(customer: Customer = Depends(get_current_customer_from_cookie_or_header)):
|
||||
pass # customer.id, customer.email, customer.store_id
|
||||
```
|
||||
@@ -53,7 +53,7 @@ def store_api(user: User = Depends(get_current_store_api)):
|
||||
pass # user.token_store_id for store context
|
||||
|
||||
# Customer API - NOTE: Returns Customer, not User!
|
||||
@router.post("/api/v1/shop/orders")
|
||||
@router.post("/api/v1/storefront/orders")
|
||||
def customer_api(request: Request, customer: Customer = Depends(get_current_customer_api)):
|
||||
pass # customer.id, request.state.store validated to match
|
||||
```
|
||||
@@ -66,7 +66,7 @@ def customer_api(request: Request, customer: Customer = Depends(get_current_cust
|
||||
|---------|--------|------|------|--------|
|
||||
| **Admin** | `admin_token` | `/admin` | `admin` | `/admin/*` |
|
||||
| **Store** | `store_token` | `/store` | `store` | `/store/*` |
|
||||
| **Customer** | `customer_token` | `/shop` | `customer` | `/shop/account/*` |
|
||||
| **Customer** | `customer_token` | `/storefront` | `customer` | `/storefront/account/*` |
|
||||
|
||||
---
|
||||
|
||||
@@ -208,8 +208,8 @@ console.log(parseJwt(localStorage.getItem('token')));
|
||||
3. ✅ **Admins** cannot access store/customer portals
|
||||
4. ✅ **Stores** cannot access admin/customer portals
|
||||
5. ✅ **Customers** cannot access admin/store portals
|
||||
6. ✅ **Public shop** (`/shop/products`) needs no auth
|
||||
7. ✅ **Customer accounts** (`/shop/account/*`) need auth
|
||||
6. ✅ **Public storefront** (`/storefront/products`) needs no auth
|
||||
7. ✅ **Customer accounts** (`/storefront/account/*`) need auth
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user