From 952c526e6cec65d09e0cef38686de3a91f8b1d99 Mon Sep 17 00:00:00 2001 From: Jacob Windsor Date: Wed, 19 Feb 2025 11:29:31 +0100 Subject: [PATCH] Fix router name --- backend/app/routers/predictions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/routers/predictions.py b/backend/app/routers/predictions.py index fe869b0..aa8b6f1 100644 --- a/backend/app/routers/predictions.py +++ b/backend/app/routers/predictions.py @@ -5,9 +5,9 @@ from app.services.ml_model import HousePricePredictor router = APIRouter() model = HousePricePredictor() -@router.post("/predict", +@router.get("/predictions/house-price", response_model=HousePredictionOutput, - summary="Predict house price", + summary="Get a house price prediction", description="Predicts the price of a house based on its features" ) async def predict_price(input_data: HousePredictionInput) -> HousePredictionOutput: