Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -49,7 +49,7 @@ def welcome():
|
|
49 |
return {"message": "Welcome to the Disease Information API! Visit /docs for API documentation."}
|
50 |
@app.get("/check/{plant_name}")
|
51 |
async def get_disease(plant_name: str):
|
52 |
-
return {"
|
53 |
# API endpoint to fetch disease details by plant name
|
54 |
@app.get("/disease/{plant_name}", response_model=Disease)
|
55 |
async def get_disease(plant_name: str):
|
|
|
49 |
return {"message": "Welcome to the Disease Information API! Visit /docs for API documentation."}
|
50 |
@app.get("/check/{plant_name}")
|
51 |
async def get_disease(plant_name: str):
|
52 |
+
return {"plantName":plant_name}
|
53 |
# API endpoint to fetch disease details by plant name
|
54 |
@app.get("/disease/{plant_name}", response_model=Disease)
|
55 |
async def get_disease(plant_name: str):
|