From da9e0b7c642ccd6d3166e79fc47004a71497633f Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Fri, 12 Dec 2025 22:36:16 +0100 Subject: [PATCH] refactor: rename cart.py to carts.py for API naming convention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/api/v1/shop/__init__.py | 4 ++-- app/api/v1/shop/{cart.py => carts.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename app/api/v1/shop/{cart.py => carts.py} (99%) diff --git a/app/api/v1/shop/__init__.py b/app/api/v1/shop/__init__.py index 23d483bd..05a36993 100644 --- a/app/api/v1/shop/__init__.py +++ b/app/api/v1/shop/__init__.py @@ -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"]) diff --git a/app/api/v1/shop/cart.py b/app/api/v1/shop/carts.py similarity index 99% rename from app/api/v1/shop/cart.py rename to app/api/v1/shop/carts.py index 215b1997..0dc2387c 100644 --- a/app/api/v1/shop/cart.py +++ b/app/api/v1/shop/carts.py @@ -1,4 +1,4 @@ -# app/api/v1/shop/cart.py +# app/api/v1/shop/carts.py """ Shop Shopping Cart API (Public)