Bug fix in init files
This commit is contained in:
@@ -4,12 +4,13 @@ Public API endpoints (customer-facing).
|
||||
"""
|
||||
|
||||
from fastapi import APIRouter
|
||||
from .vendors import auth, products, cart, orders
|
||||
from .vendors import auth, products, cart, orders, vendors
|
||||
|
||||
# Create public router
|
||||
router = APIRouter()
|
||||
|
||||
# Include all public sub-routers
|
||||
router.include_router(vendors.router, prefix="/vendors", tags=["public-vendors"])
|
||||
router.include_router(auth.router, prefix="/vendors", tags=["public-auth"])
|
||||
router.include_router(products.router, prefix="/vendors", tags=["public-products"])
|
||||
router.include_router(cart.router, prefix="/vendors", tags=["public-cart"])
|
||||
|
||||
2
app/api/v1/public/vendors/auth.py
vendored
2
app/api/v1/public/vendors/auth.py
vendored
@@ -19,7 +19,7 @@ from models.schema.auth import LoginResponse, UserLogin
|
||||
from models.schema.customer import CustomerRegister, CustomerResponse
|
||||
from models.database.vendor import Vendor
|
||||
|
||||
router = APIRouter()
|
||||
router = APIRouter(prefix="/auth")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user