feat(system): make store locations public for storefront repair booking
This commit is contained in:
parent
c5ba684bdc
commit
f2cc4f36f8
1 changed files with 9 additions and 2 deletions
|
|
@ -32,13 +32,20 @@ def create_location(
|
||||||
|
|
||||||
@router.get("/locations", response_model=List[CrmLocationResponse])
|
@router.get("/locations", response_model=List[CrmLocationResponse])
|
||||||
def list_locations(
|
def list_locations(
|
||||||
svc: SystemConfigService = Depends(get_system_service),
|
svc: SystemConfigService = Depends(get_system_service)
|
||||||
current_user: User = Depends(get_current_user)
|
|
||||||
) -> Any:
|
) -> Any:
|
||||||
"""Lists all store and warehouse locations."""
|
"""Lists all store and warehouse locations."""
|
||||||
return svc.list_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 ---
|
# --- DYNAMIC DEVICE TYPES ENDPOINTS ---
|
||||||
@router.post("/device-types", response_model=DeviceTypeResponse, status_code=status.HTTP_201_CREATED)
|
@router.post("/device-types", response_model=DeviceTypeResponse, status_code=status.HTTP_201_CREATED)
|
||||||
def create_device_type(
|
def create_device_type(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue