From c2c78ac482f24a664f0cd44858e28f97d75340f9 Mon Sep 17 00:00:00 2001 From: Prince D Rusweka Rwabongoya Date: Wed, 23 Apr 2025 18:01:47 -0400 Subject: [PATCH] Update main.py --- backend/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/main.py b/backend/main.py index 13243e8..4a86eac 100644 --- a/backend/main.py +++ b/backend/main.py @@ -6,7 +6,6 @@ # Initialize Flask app app = Flask(__name__) -# Initialize Swagger (Flasgger) Swagger(app) # SQLite database file @@ -62,7 +61,7 @@ def init_db(): # API Routes @app.route('/api/pets', methods=['GET']) def get_pets(): - """Retrieve all pets""" + """Retrieve all pets.""" try: conn = get_db() cursor = conn.cursor() @@ -85,7 +84,7 @@ def home(): @app.route('/api/pets/', methods=['GET']) def get_pet(pet_id): - """Retrieve a single pet by ID""" + """Retrieve a single pet by ID.""" try: conn = get_db() cursor = conn.cursor() @@ -106,7 +105,7 @@ def get_pet(pet_id): @app.route('/api/pets', methods=['POST']) def add_pet(): - """Add a new pet""" + """Add a new pet.""" try: pet_data = request.get_json()