refactor: rename cart.py to carts.py for API naming convention

API endpoint files should use plural names (carts.py, products.py)
following the project naming conventions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-12 22:36:16 +01:00
parent 9c60989f1d
commit da9e0b7c64
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ Authentication:
from fastapi import APIRouter
# Import shop routers
from . import auth, cart, content_pages, orders, products
from . import auth, carts, content_pages, orders, products
# Create shop router
router = APIRouter()
@@ -37,7 +37,7 @@ router.include_router(auth.router, tags=["shop-auth"])
router.include_router(products.router, tags=["shop-products"])
# Shopping cart (public - session based)
router.include_router(cart.router, tags=["shop-cart"])
router.include_router(carts.router, tags=["shop-cart"])
# Orders (authenticated)
router.include_router(orders.router, tags=["shop-orders"])

View File

@@ -1,4 +1,4 @@
# app/api/v1/shop/cart.py
# app/api/v1/shop/carts.py
"""
Shop Shopping Cart API (Public)