From 090e5e0c41db2068d7e55684e320b287adc34bab Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 12 Sep 2024 12:44:41 +0300 Subject: Make the gnqa search endpoint a get request. --- gn3/api/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/api') diff --git a/gn3/api/llm.py b/gn3/api/llm.py index 358ef77..e23429e 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -16,7 +16,7 @@ from gn3.auth import db gnqa = Blueprint("gnqa", __name__) -@gnqa.route("/search", methods=["PUT"]) +@gnqa.route("/search", methods=["GET"]) def search(): """Api endpoint for searching queries in fahamu Api""" query = request.args.get("query", "") -- cgit v1.2.3