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:
@@ -21,7 +21,7 @@ Authentication:
|
|||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
|
||||||
# Import shop routers
|
# Import shop routers
|
||||||
from . import auth, cart, content_pages, orders, products
|
from . import auth, carts, content_pages, orders, products
|
||||||
|
|
||||||
# Create shop router
|
# Create shop router
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
@@ -37,7 +37,7 @@ router.include_router(auth.router, tags=["shop-auth"])
|
|||||||
router.include_router(products.router, tags=["shop-products"])
|
router.include_router(products.router, tags=["shop-products"])
|
||||||
|
|
||||||
# Shopping cart (public - session based)
|
# Shopping cart (public - session based)
|
||||||
router.include_router(cart.router, tags=["shop-cart"])
|
router.include_router(carts.router, tags=["shop-cart"])
|
||||||
|
|
||||||
# Orders (authenticated)
|
# Orders (authenticated)
|
||||||
router.include_router(orders.router, tags=["shop-orders"])
|
router.include_router(orders.router, tags=["shop-orders"])
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# app/api/v1/shop/cart.py
|
# app/api/v1/shop/carts.py
|
||||||
"""
|
"""
|
||||||
Shop Shopping Cart API (Public)
|
Shop Shopping Cart API (Public)
|
||||||
|
|
||||||
Reference in New Issue
Block a user