feat(system): make store locations public for storefront repair booking

This commit is contained in:
iFixKart Dev 2026-11-16 19:14:28 +05:30
parent c5ba684bdc
commit f2cc4f36f8

View file

@ -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(