diff --git a/apps/api/app/api/routes/duplication.py b/apps/api/app/api/routes/duplication.py index e494a1328..e98c26db8 100644 --- a/apps/api/app/api/routes/duplication.py +++ b/apps/api/app/api/routes/duplication.py @@ -239,7 +239,7 @@ def get_duplication_detail( return _to_detail_response(record) -@router.delete("/records/{record_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) +@router.delete("/records/{record_id}", status_code=status.HTTP_204_NO_CONTENT) def delete_duplication_record( record_id: str, authenticated_user: AuthenticatedUser = Depends(get_current_user), diff --git a/apps/api/app/api/routes/recipes.py b/apps/api/app/api/routes/recipes.py index ee5e50f31..b5868f07a 100644 --- a/apps/api/app/api/routes/recipes.py +++ b/apps/api/app/api/routes/recipes.py @@ -174,7 +174,7 @@ def update_recipe( return _to_response(recipe) -@router.delete("/{recipe_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) +@router.delete("/{recipe_id}", status_code=status.HTTP_204_NO_CONTENT) def delete_recipe( recipe_id: str, authenticated_user: AuthenticatedUser = Depends(get_current_user), diff --git a/apps/api/app/api/routes/templates.py b/apps/api/app/api/routes/templates.py index 056278150..774820305 100644 --- a/apps/api/app/api/routes/templates.py +++ b/apps/api/app/api/routes/templates.py @@ -195,7 +195,7 @@ def update_template( return _to_response(template) -@router.delete("/{template_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) +@router.delete("/{template_id}", status_code=status.HTTP_204_NO_CONTENT) def delete_template( template_id: str, authenticated_user: AuthenticatedUser = Depends(get_current_user), @@ -273,7 +273,7 @@ def create_category( ) -@router.delete("/categories/{category_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) +@router.delete("/categories/{category_id}", status_code=status.HTTP_204_NO_CONTENT) def delete_category( category_id: str, authenticated_user: AuthenticatedUser = Depends(get_current_user), diff --git a/apps/api/app/api/routes/titles.py b/apps/api/app/api/routes/titles.py index b55c8e7f5..1aed51d5c 100644 --- a/apps/api/app/api/routes/titles.py +++ b/apps/api/app/api/routes/titles.py @@ -143,7 +143,7 @@ def update_title( return _to_response(item) -@router.delete("/{title_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) +@router.delete("/{title_id}", status_code=status.HTTP_204_NO_CONTENT) def delete_title( title_id: str, authenticated_user: AuthenticatedUser = Depends(get_current_user), diff --git a/apps/api/app/api/routes/tts.py b/apps/api/app/api/routes/tts.py index 2f6a8da30..21823a3d7 100644 --- a/apps/api/app/api/routes/tts.py +++ b/apps/api/app/api/routes/tts.py @@ -176,7 +176,7 @@ def get_tts_job_status( ) -@router.delete("/jobs/{job_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) +@router.delete("/jobs/{job_id}", status_code=status.HTTP_204_NO_CONTENT) def delete_tts_job( job_id: str, authenticated_user: AuthenticatedUser = Depends(get_current_user), diff --git a/apps/api/app/api/routes/voice_clones.py b/apps/api/app/api/routes/voice_clones.py index 66ef938fd..e148f6308 100644 --- a/apps/api/app/api/routes/voice_clones.py +++ b/apps/api/app/api/routes/voice_clones.py @@ -191,7 +191,6 @@ def get_voice_clone_status( @router.delete( "/{clone_id}", status_code=status.HTTP_204_NO_CONTENT, - response_class=Response, ) def delete_voice_clone( clone_id: str, diff --git a/apps/api/app/api/routes/voices.py b/apps/api/app/api/routes/voices.py index a91b4b4da..73d41090f 100644 --- a/apps/api/app/api/routes/voices.py +++ b/apps/api/app/api/routes/voices.py @@ -316,7 +316,7 @@ def update_voice( return _to_response(item) -@router.delete("/{voice_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) +@router.delete("/{voice_id}", status_code=status.HTTP_204_NO_CONTENT) def delete_voice( voice_id: str, authenticated_user: AuthenticatedUser = Depends(get_current_user),