diff options
author | Alexander_Kabui | 2024-09-06 14:00:49 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-06 14:01:34 +0300 |
commit | 324f2ebf4106910386c2dceb8130ea32785068f0 (patch) | |
tree | c945baec4c07bdb8d5bb9be294167b3dda6e5775 /gn3 | |
parent | cfeb54b776e95194381d26cff02ea738ad4fd3e0 (diff) | |
download | genenetwork3-324f2ebf4106910386c2dceb8130ea32785068f0.tar.gz |
Modify endpoint to use query string.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/llm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py index 7e60271..90d5e1f 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -19,7 +19,7 @@ gnqa = Blueprint("gnqa", __name__) @gnqa.route("/search", methods=["PUT"]) def search(): """Api endpoint for searching queries in fahamu Api""" - query = request.json.get("querygnqa", "") + query = request.args.get("query", "") if not query: return jsonify({"error": "querygnqa is missing in the request"}), 400 fahamu_token = current_app.config.get("FAHAMU_AUTH_TOKEN") |