From f2cc4f36f8877c6537daae6d6b5098c2f6644378 Mon Sep 17 00:00:00 2001 From: iFixKart Dev Date: Mon, 16 Nov 2026 19:14:28 +0530 Subject: [PATCH] feat(system): make store locations public for storefront repair booking --- app/api/v1/routers/SystemConfigRouter.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/api/v1/routers/SystemConfigRouter.py b/app/api/v1/routers/SystemConfigRouter.py index 3f66885..1e1cb5e 100644 --- a/app/api/v1/routers/SystemConfigRouter.py +++ b/app/api/v1/routers/SystemConfigRouter.py @@ -32,13 +32,20 @@ def create_location( @router.get("/locations", response_model=List[CrmLocationResponse]) def list_locations( - svc: SystemConfigService = Depends(get_system_service), - current_user: User = Depends(get_current_user) + svc: SystemConfigService = Depends(get_system_service) ) -> Any: """Lists all store and warehouse locations.""" return svc.list_locations() +@router.get("/system-config/locations", response_model=List[CrmLocationResponse]) +def list_locations_alias( + svc: SystemConfigService = Depends(get_system_service) +) -> Any: + """Compatibility alias for storefront booking wizard.""" + return svc.list_locations() + + # --- DYNAMIC DEVICE TYPES ENDPOINTS --- @router.post("/device-types", response_model=DeviceTypeResponse, status_code=status.HTTP_201_CREATED) def create_device_type(