🔥 refactor(store.py): remove count_components endpoint
The count_components endpoint was removed as it was no longer being used and served no purpose in the API.
This commit is contained in:
parent
31fb76c992
commit
3934096e06
1 changed files with 0 additions and 15 deletions
|
|
@ -78,21 +78,6 @@ def list_components(
|
|||
raise HTTPException(status_code=400, detail=str(exc))
|
||||
|
||||
|
||||
@router.get("/components/count", response_model=dict)
|
||||
def count_components(
|
||||
filter_by_user: bool = Query(False),
|
||||
store_service: StoreService = Depends(get_store_service),
|
||||
store_api_Key: str = Depends(get_optional_user_store_api_key),
|
||||
):
|
||||
try:
|
||||
result = store_service.count_components(
|
||||
api_key=store_api_Key, filter_by_user=filter_by_user
|
||||
)
|
||||
return {"count": result}
|
||||
except Exception as exc:
|
||||
raise HTTPException(status_code=400, detail=str(exc))
|
||||
|
||||
|
||||
@router.get("/components/{component_id}", response_model=DownloadComponentResponse)
|
||||
def read_component(
|
||||
component_id: UUID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue