From c0877611f26b9977df9c642c4b0c9e28c6fa91bc Mon Sep 17 00:00:00 2001 From: "justin.hsu" Date: Thu, 14 Nov 2024 12:35:54 +0800 Subject: [PATCH] fix: pre-commit issue --- Model/flask_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Model/flask_app.py b/Model/flask_app.py index 7190600..f96a5cd 100644 --- a/Model/flask_app.py +++ b/Model/flask_app.py @@ -18,7 +18,7 @@ @auth.verify_password def verify_password(username, password): - """ Verify password for API Docs""" + """Verify password for API Docs""" if username in users and check_password_hash(users.get(username), password): return username return None @@ -53,6 +53,7 @@ def verify_password(username, password): @ns.route('/') class HealthCheck(Resource): """Server health check.""" + @api.doc('health_check') def get(self): """Server health check.""" @@ -64,6 +65,7 @@ def get(self): @ns.route('/chat') class ChatBot(Resource): """retrieve and rank api entry point""" + @api.doc('chat_bot') @api.expect(model) def post(self):