Skip to content

Commit

Permalink
removed rogue jsonify reference
Browse files Browse the repository at this point in the history
  • Loading branch information
apradoada committed Dec 6, 2024
1 parent a755f61 commit 1b93f8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/routes/pet_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def get_pets():
for pet in pets:
response.append(pet.to_dict())

return jsonify(response)
return response

@bp.get("/<pet_id>")
def get_single_cat(pet_id):
cat = validate_model(Pet,pet_id)
return cat.to_dict()
def get_single_pet(pet_id):
pet = validate_model(Pet,pet_id)
return pet.to_dict()

def validate_model(cls,id):
try:
Expand Down

0 comments on commit 1b93f8d

Please sign in to comment.