From 322656ebb0fb9eb181ad057ff964d0467f7a0dfd Mon Sep 17 00:00:00 2001 From: KevinRawal Date: Sat, 6 Sep 2025 20:48:31 +0530 Subject: [PATCH] fixed endpoint name --- app/api/routes/questions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/routes/questions.py b/app/api/routes/questions.py index 790b909..5969346 100644 --- a/app/api/routes/questions.py +++ b/app/api/routes/questions.py @@ -19,14 +19,15 @@ def get_daily_questions( url = f"{GENERATOR_SERVICE_URL}/api/v1/questions/get_daily_question" return make_request("GET", url) - +#TODO: user prompt should be in request body @router.post("/generate_question") def generate_question( user_prompt: str, _check_permission=Depends(check_for_permission("VIEW_QUESTIONS")), ): """Generate a new question based on topic and difficulty.""" - url = f"{GENERATOR_SERVICE_URL}/api/v1/questions/generate_question" + #TODO: change endpoint to generate_question + url = f"{GENERATOR_SERVICE_URL}/api/v1/questions/generate_daily_question" payload = {"user_prompt": user_prompt} return make_request("POST", url, json=payload)