navpan2 commited on
Commit
50e6f31
·
verified ·
1 Parent(s): 446c76e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 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):
 
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):